Skip to content

Commit

Permalink
nodePackages.node-gyp: drop
Browse files Browse the repository at this point in the history
  • Loading branch information
dotlambda committed Aug 13, 2024
1 parent d07c3c3 commit 000f83e
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 170 deletions.
4 changes: 2 additions & 2 deletions pkgs/by-name/n8/n8n/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
nodejs,
pnpm,
python3,
nodePackages,
node-gyp,
cacert,
xcbuild,
libkrb5,
Expand Down Expand Up @@ -34,7 +34,7 @@ stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = [
pnpm.configHook
python3 # required to build sqlite3 bindings
nodePackages.node-gyp # required to build sqlite3 bindings
node-gyp # required to build sqlite3 bindings
cacert # required for rustls-native-certs (dependency of turbo build tool)
makeWrapper
] ++ lib.optional stdenv.isDarwin [ xcbuild ];
Expand Down
4 changes: 2 additions & 2 deletions pkgs/by-name/vs/vscode-js-debug/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
, Security
, AppKit
, pkg-config
, nodePackages
, node-gyp
, runCommand
, vscode-js-debug
, nix-update-script
Expand All @@ -29,7 +29,7 @@ buildNpmPackage rec {

nativeBuildInputs = [
pkg-config
nodePackages.node-gyp
node-gyp
] ++ lib.optionals stdenv.isDarwin [ xcbuild ];

buildInputs =
Expand Down
1 change: 1 addition & 0 deletions pkgs/development/node-packages/aliases.nix
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ mapAliases {
musescore-downloader = pkgs.dl-librescore; # added 2023-08-19
inherit (pkgs) near-cli; # added 2023-09-09
node-inspector = throw "node-inspector was removed because it was broken"; # added 2023-08-21
inherit (pkgs) node-gyp; # added 2024-08-13
inherit (pkgs) node-pre-gyp; # added 2024-08-05
inherit (pkgs) nodemon; # added 2024-06-28
inherit (pkgs) npm-check-updates; # added 2023-08-22
Expand Down
1 change: 0 additions & 1 deletion pkgs/development/node-packages/node-packages.json
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,6 @@
, "multi-file-swagger"
, "neovim"
, "nijs"
, "node-gyp"
, "node-gyp-build"
, "node-red"
, "node2nix"
Expand Down
147 changes: 0 additions & 147 deletions pkgs/development/node-packages/node-packages.nix

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 0 additions & 10 deletions pkgs/development/node-packages/overrides.nix
Original file line number Diff line number Diff line change
Expand Up @@ -168,16 +168,6 @@ final: prev: {
'';
};

node-gyp = prev.node-gyp.override {
nativeBuildInputs = [ pkgs.buildPackages.makeWrapper ];
# Teach node-gyp to use nodejs headers locally rather that download them form https://nodejs.org.
# This is important when build nodejs packages in sandbox.
postInstall = ''
wrapProgram "$out/bin/node-gyp" \
--set npm_config_nodedir ${nodejs}
'';
};

node-red = prev.node-red.override {
buildInputs = [ pkgs.node-pre-gyp ];
};
Expand Down
4 changes: 2 additions & 2 deletions pkgs/development/tools/nodehun/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
, darwin
, fetchFromGitHub
, lib
, nodePackages
, node-gyp
, nodejs
, python3
, stdenv
Expand Down Expand Up @@ -31,7 +31,7 @@ buildNpmPackage {
npmDepsHash = "sha256-mV6rWNf2p2w4H0ESUT0/Ybtx9YEdvO5l2gCvlWFXK+U=";

buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.CoreServices ];
nativeBuildInputs = [ nodePackages.node-gyp python3 ]
nativeBuildInputs = [ node-gyp python3 ]
++ lib.optionals stdenv.isDarwin [ cctools ];

postInstall = ''
Expand Down
4 changes: 2 additions & 2 deletions pkgs/tools/admin/balena-cli/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
, fetchFromGitHub
, testers
, balena-cli
, nodePackages
, node-gyp
, python3
, udev
, cctools
Expand Down Expand Up @@ -36,7 +36,7 @@ in buildNpmPackage' rec {
makeCacheWritable = true;

nativeBuildInputs = [
nodePackages.node-gyp
node-gyp
python3
] ++ lib.optionals stdenv.isDarwin [
cctools
Expand Down
4 changes: 2 additions & 2 deletions pkgs/tools/security/cdxgen/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
, lib
, makeWrapper
, nodejs
, nodePackages
, node-gyp
, pnpm_9
, python3
, stdenv
Expand All @@ -23,7 +23,7 @@ stdenv.mkDerivation (finalAttrs: {
nativeBuildInputs = [
makeWrapper
nodejs
nodePackages.node-gyp # required for sqlite3 bindings
node-gyp # required for sqlite3 bindings
pnpm_9.configHook
python3 # required for sqlite3 bindings
] ++ lib.optional stdenv.isDarwin [ xcbuild ];
Expand Down
2 changes: 0 additions & 2 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -34455,13 +34455,11 @@ with pkgs;
openvscode-server = callPackage ../servers/openvscode-server {
nodejs = nodejs_18;
inherit (darwin.apple_sdk.frameworks) AppKit Cocoa Security;
inherit (nodePackages) node-gyp;
};

code-server = callPackage ../servers/code-server {
nodejs = nodejs_20;
inherit (darwin.apple_sdk.frameworks) AppKit Cocoa CoreServices Security;
inherit (nodePackages) node-gyp;
};

vue = callPackage ../applications/misc/vue { };
Expand Down

0 comments on commit 000f83e

Please sign in to comment.