diff options
author | Franz Pletz <fpletz@fnordicwalking.de> | 2024-02-29 02:06:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-29 02:06:18 +0100 |
commit | 392bc69fa749302c8859db904530dcdf8f971705 (patch) | |
tree | 615054ae21ef2dc1e41762c43503896d63f9f10c | |
parent | 544218faaaa9890a9822e9eb9435ca52ac148d27 (diff) | |
parent | e57cbfc8cb92682414df98438c429e21f4afde38 (diff) | |
download | nixlib-392bc69fa749302c8859db904530dcdf8f971705.tar nixlib-392bc69fa749302c8859db904530dcdf8f971705.tar.gz nixlib-392bc69fa749302c8859db904530dcdf8f971705.tar.bz2 nixlib-392bc69fa749302c8859db904530dcdf8f971705.tar.lz nixlib-392bc69fa749302c8859db904530dcdf8f971705.tar.xz nixlib-392bc69fa749302c8859db904530dcdf8f971705.tar.zst nixlib-392bc69fa749302c8859db904530dcdf8f971705.zip |
Merge pull request #292101 from NixOS/revert-253156-nodejs
-rw-r--r-- | pkgs/development/web/nodejs/nodejs.nix | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/pkgs/development/web/nodejs/nodejs.nix b/pkgs/development/web/nodejs/nodejs.nix index ef17c68d3250..b1bd0ae912d9 100644 --- a/pkgs/development/web/nodejs/nodejs.nix +++ b/pkgs/development/web/nodejs/nodejs.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, nukeReferences, openssl, python, zlib, libuv, http-parser, bash +{ lib, stdenv, fetchurl, openssl, python, zlib, libuv, util-linux, http-parser, bash , pkg-config, which, buildPackages # for `.pkgs` attribute , callPackage @@ -6,7 +6,7 @@ , writeScript, coreutils, gnugrep, jq, curl, common-updater-scripts, nix, runtimeShell , gnupg , darwin, xcbuild -, icu +, procps, icu }: { enableNpm ? true, version, sha256, patches ? [] } @args: @@ -69,10 +69,10 @@ let buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ApplicationServices ] ++ [ zlib libuv openssl http-parser icu bash ]; - nativeBuildInputs = [ nukeReferences which pkg-config python ] + nativeBuildInputs = [ which pkg-config python ] ++ lib.optionals stdenv.isDarwin [ xcbuild ]; - outputs = [ "out" "dev" "libv8" ]; + outputs = [ "out" "libv8" ]; setOutputFlags = false; moveToDev = false; @@ -157,13 +157,8 @@ let done ''} - # remove references to build time dependencies - nuke-refs $out/bin/node - - moveToOutput "include" "$dev" - # install the missing headers for node-gyp - cp -r ${lib.concatStringsSep " " copyLibHeaders} $dev/include/node + cp -r ${lib.concatStringsSep " " copyLibHeaders} $out/include/node # assemble a static v8 library and put it in the 'libv8' output mkdir -p $libv8/lib |