34 lines
803 B
Nix
34 lines
803 B
Nix
|
{
|
||
|
description = "Flake file for logos website ";
|
||
|
|
||
|
inputs = {
|
||
|
nixpkgs.url = "nixpkgs/nixos-24.05";
|
||
|
};
|
||
|
|
||
|
outputs =
|
||
|
{ self, nixpkgs }:
|
||
|
let
|
||
|
supportedSystems = [
|
||
|
"x86_64-linux"
|
||
|
"aarch64-linux"
|
||
|
"x86_64-darwin"
|
||
|
"aarch64-darwin"
|
||
|
];
|
||
|
forEachSystem = nixpkgs.lib.genAttrs supportedSystems;
|
||
|
pkgsFor = forEachSystem (system: import nixpkgs { inherit system; });
|
||
|
in
|
||
|
rec {
|
||
|
formatter = forEachSystem (system: pkgsFor.${system}.nixpkgs-fmt);
|
||
|
|
||
|
devShells = forEachSystem (system: {
|
||
|
default = pkgsFor.${system}.mkShellNoCC {
|
||
|
packages = with pkgsFor.${system}.buildPackages; [
|
||
|
yarn # 1.22.22
|
||
|
nodejs_20 # v20.15.1
|
||
|
ghp-import # 2.1.0
|
||
|
];
|
||
|
};
|
||
|
});
|
||
|
};
|
||
|
}
|