42 lines
665 B
Nix
42 lines
665 B
Nix
{
|
|
inputs = {
|
|
nixpkgs.url = "https://channels.nixos.org/nixos-unstable/nixexprs.tar.xz";
|
|
};
|
|
|
|
outputs = {
|
|
self,
|
|
nixpkgs,
|
|
...
|
|
}: let
|
|
inherit (nixpkgs) lib;
|
|
systems = [
|
|
"x86_64-linux"
|
|
|
|
# untested but should work
|
|
"x86_64-darwin"
|
|
"aarch64-darwin"
|
|
"aarch64-linux"
|
|
];
|
|
forAllSystems = lib.genAttrs systems;
|
|
in {
|
|
|
|
devShells = forAllSystems(system: let
|
|
pkgs = import nixpkgs {
|
|
inherit system;
|
|
};
|
|
nodejs = pkgs.nodejs-slim_24;
|
|
pnpm = pkgs.pnpm_10.override {
|
|
nodejs-slim = nodejs;
|
|
};
|
|
in {
|
|
default = pkgs.mkShell {
|
|
nativeBuildInputs = with pkgs; [
|
|
nodejs
|
|
pnpm
|
|
gnumake
|
|
];
|
|
};
|
|
});
|
|
};
|
|
}
|
|
|