add devshell for nodejs
This commit is contained in:
parent
bee99d02ec
commit
fb8c172b04
2 changed files with 12 additions and 0 deletions
|
@ -26,6 +26,7 @@
|
||||||
haskell = import ./shells/haskell.nix { inherit pkgs; };
|
haskell = import ./shells/haskell.nix { inherit pkgs; };
|
||||||
python = import ./shells/python.nix { inherit pkgs; };
|
python = import ./shells/python.nix { inherit pkgs; };
|
||||||
rust = import ./shells/rust.nix { inherit pkgs; };
|
rust = import ./shells/rust.nix { inherit pkgs; };
|
||||||
|
node = import ./shells/node.nix { inherit pkgs; };
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
11
shells/node.nix
Normal file
11
shells/node.nix
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
{ pkgs }: pkgs.mkShell {
|
||||||
|
packages = with pkgs; [
|
||||||
|
nodejs_20
|
||||||
|
yarn
|
||||||
|
];
|
||||||
|
shellHook = ''
|
||||||
|
export npm_config_prefix="$PWD/.nix/npm/prefix"
|
||||||
|
export npm_config_cache="$PWD/.nix/npm/cache"
|
||||||
|
export PATH="$npm_config_prefix/bin:$PATH"
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in a new issue