all repos — nixfiles @ f7bf69cf5141a8193b900a136f18769bd0820d00

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

javascript: split npmPackages
Alan Pearce alan@alanpearce.eu
Fri, 05 Jul 2019 16:09:41 +0200
commit

f7bf69cf5141a8193b900a136f18769bd0820d00

parent

851738b06d2c30e2531267580cb926b216ff8f48

1 files changed, 16 insertions(+), 17 deletions(-)

jump to
M modules/development/javascript.nixmodules/development/javascript.nix
@@ -4,23 +4,8 @@ let   node = pkgs.unstable.nodejs-10_x;
   npmPackages = pkgs.unstable.nodePackages_10_x;
 in
-{ environment.systemPackages = with pkgs.unstable; [
+{ 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.typescript-language-server
-    npmPackages.eslint_d
-    npmPackages.yarn
-    npmPackages.prettier
-    npmPackages.pnpm
-
   ] ++ (
     if stdenv.isDarwin
     then
@@ -34,5 +19,19 @@ gcc     gnumake
     python2
     ]
-  );
+  )) ++ (with npmPackages; [
+    node-gyp
+    node-gyp-build
+    node-pre-gyp
+
+    tern
+    node2nix
+    nodemon
+    javascript-typescript-langserver
+    typescript-language-server
+    eslint_d
+    yarn
+    prettier
+    pnpm
+  ]);
 }