summary refs log tree commit diff stats
path: root/modules
diff options
context:
space:
mode:
authorAlan Pearce2019-02-04 09:59:11 +0000
committerAlan Pearce2019-02-04 09:59:11 +0000
commit727dfcc3eff33f8fe422a82a1b3ff3ffe4a80073 (patch)
tree0716c365815af94dd8d3664274d3f2dd5f0fabfa /modules
parent2ab847b54ba9ab409eeb6ac8924934269990f4d8 (diff)
downloadnixfiles-727dfcc3eff33f8fe422a82a1b3ff3ffe4a80073.tar.lz
nixfiles-727dfcc3eff33f8fe422a82a1b3ff3ffe4a80073.tar.zst
nixfiles-727dfcc3eff33f8fe422a82a1b3ff3ffe4a80073.zip
Update javascript setup
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 7e9dcfb4..5262feee 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