Skip to content

Commit

Permalink
netlify-cli: Pin to nodejs_20
Browse files Browse the repository at this point in the history
Fixes a node gyp compilation failure
  • Loading branch information
roberth committed Jan 3, 2025
1 parent 1439e82 commit 097be59
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions pkgs/development/web/netlify-cli/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
fetchFromGitHub,
lib,
nix-update-script,
nodejs,
pkg-config,
vips,
}:
Expand All @@ -21,6 +22,8 @@ buildNpmPackage rec {

npmDepsHash = "sha256-pJaNdR9jyFSdfE+yLnQn9/Gbq2CbH6y3aEVbpg3Ft/o=";

inherit nodejs;

buildInputs = [ vips ];
nativeBuildInputs = [ pkg-config ];

Expand Down
4 changes: 3 additions & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -4405,7 +4405,9 @@ with pkgs;
};
});

netlify-cli = callPackage ../development/web/netlify-cli { };
netlify-cli = callPackage ../development/web/netlify-cli {
nodejs = nodejs_20;
};

netpbm = callPackage ../tools/graphics/netpbm { };

Expand Down

0 comments on commit 097be59

Please sign in to comment.