all repos — nixfiles @ 727dfcc3eff33f8fe422a82a1b3ff3ffe4a80073

System and user configuration, managed by nix and home-manager

Update javascript setup
Alan Pearce alan@alanpearce.eu
Mon, 04 Feb 2019 09:59:11 +0000
commit

727dfcc3eff33f8fe422a82a1b3ff3ffe4a80073

parent

2ab847b54ba9ab409eeb6ac8924934269990f4d8

1 files changed, 14 insertions(+), 9 deletions(-)

jump to
M modules/development/javascript.nixmodules/development/javascript.nix
@@ -1,17 +1,22 @@ { config, pkgs, ... }:
 
+let
+  node = pkgs.unstable.nodejs-10_x;
+  npmPackages = pkgs.unstable.nodePackages_10_x;
+in
 { environment.systemPackages = with pkgs.unstable; [
-    nodejs-10_x
+    node
 
-    nodePackages_10_x.tern
-    nodePackages_10_x.node2nix
-    nodePackages_10_x.nodemon
-    nodePackages_10_x.javascript-typescript-langserver
-    nodePackages_10_x.eslint_d
+    npmPackages.node-gyp
+    npmPackages.node-gyp-build
+    npmPackages.node-pre-gyp
+
+    npmPackages.tern
+    npmPackages.node2nix
+    npmPackages.nodemon
+    npmPackages.javascript-typescript-langserver
+    npmPackages.eslint_d
 
-    nodePackages_10_x.node-gyp
-    nodePackages_10_x.node-gyp-build
-    nodePackages_10_x.node-pre-gyp
   ] ++ (
     if stdenv.isDarwin
     then