summary refs log tree commit diff stats
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/development/javascript.nix23
1 files changed, 14 insertions, 9 deletions
diff --git a/modules/development/javascript.nix b/modules/development/javascript.nix
index 7e9dcfb..5262fee 100644
--- a/modules/development/javascript.nix
+++ b/modules/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