Use system nodejs version for node2nix packages
Alan Pearce alan@alanpearce.eu
Tue, 02 Mar 2021 11:55:44 +0100
2 files changed, 12 insertions(+), 3 deletions(-)
M user/packages/node2nix/Makefile → user/packages/node2nix/Makefile
@@ -1,5 +1,5 @@ default.nix: node-packages.json - nix-shell -p nodePackages.node2nix --run "node2nix --nodejs-12 --input $<" + nix-shell -p nodePackages.node2nix --run "node2nix --nodejs-14 --input $<" install: default.nix nix-env -f default.nix -i
M user/settings/javascript.nix → user/settings/javascript.nix
@@ -1,9 +1,18 @@ { config, pkgs, ... }: let - node = pkgs.nodejs-12_x; + node = pkgs.nodejs-14_x; in -{ home.packages = (with pkgs; [ +{ + nixpkgs.overlays = [ + (self: super: { + node2nixPackages = super.callPackage ../packages/node2nix { + nodejs = node; + }; + }) + ]; + + home.packages = (with pkgs; [ node ] ++ ( if stdenv.isDarwin