modules/development/javascript.nix (view raw)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 | { config, pkgs, ... }:
let
node = pkgs.unstable.nodejs-10_x;
npmPackages = pkgs.unstable.nodePackages_10_x;
in
{ environment.systemPackages = with pkgs.unstable; [
node
npmPackages.node-gyp
npmPackages.node-gyp-build
npmPackages.node-pre-gyp
npmPackages.tern
npmPackages.node2nix
npmPackages.nodemon
npmPackages.javascript-typescript-langserver
npmPackages.eslint_d
npmPackages.yarn
] ++ (
if stdenv.isDarwin
then
[
]
else
[
# npm install may use any of these
binutils
gcc
gnumake
python2
]
);
}
|