From 727dfcc3eff33f8fe422a82a1b3ff3ffe4a80073 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 4 Feb 2019 09:59:11 +0000 Subject: Update javascript setup --- modules/development/javascript.nix | 23 ++++++++++++++--------- 1 file 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 -- cgit 1.4.1