diff options
author | Ashelyn Rose <git@ashen.earth> | 2024-08-22 01:24:48 -0600 |
---|---|---|
committer | Ashelyn Rose <git@ashen.earth> | 2024-08-22 01:26:08 -0600 |
commit | c252e165db66b67d34d3120c10b426491dfee1c2 (patch) | |
tree | 10de4425fd4c7df040e4f1588be642052acdbce2 | |
parent | 43ed4adce7729ede3e2478b6518aa7014f068bff (diff) |
Newer version of Node for newer Nixpkgs
-rw-r--r-- | flake.nix | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/flake.nix b/flake.nix index f514cc6..b437ff1 100644 --- a/flake.nix +++ b/flake.nix @@ -34,8 +34,8 @@ deps = builtins.attrValues (removeAttrs packageLock.packages [ "" ]); depTarballs = map (p: pkgs.fetchurl { url = p.resolved; hash = p.integrity; }) deps; nodeTarball = pkgs.fetchurl { - url = "https://nodejs.org/download/release/v20.2.0/node-v20.2.0-headers.tar.gz"; - hash = "sha256-GxkJoXnN/35mTQXnivQAa942T07t5hTCr4C6j0C3a/k="; + url = "https://nodejs.org/download/release/v20.11.1/node-v20.11.1-headers.tar.gz"; + hash = "sha256-CqQskbRB6UX/Q706g3dZxYtDbeV9zQM9AuXLzS+6H4c="; }; tarballsFile = pkgs.writeTextFile { name = "tarballs"; @@ -58,9 +58,10 @@ buildPhase = '' export HOME=$PWD/.home export npm_config_cache=$PWD/.npm + NODE_VERSION=$(${nodejs}/bin/node -v) echo "Caching Node headers" - ${pkgs.nodePackages.node-gyp}/bin/node-gyp install v20.2.0 --tarball=${nodeTarball} + ${pkgs.nodePackages.node-gyp}/bin/node-gyp install $NODE_VERSION --tarball=${nodeTarball} echo "Caching NPM dependencies" while read package |