31 lines
752 B
Nix
31 lines
752 B
Nix
{
|
|
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
|
|
];
|
|
};
|
|
});
|
|
};
|
|
} |