diff options
author | Ivan Trubach <mr.trubach@icloud.com> | 2023-07-18 18:47:45 +0300 |
---|---|---|
committer | Ivan Trubach <mr.trubach@icloud.com> | 2023-08-28 12:16:30 +0300 |
commit | 65ff987f802042659f9a3a1f8000182a5a9cd7ee (patch) | |
tree | 734fec0eb8858f60232795a10fe790525d7b0550 /pkgs/development/web/nodejs | |
parent | e29c3309399b7d7ef8f606c300cd973da40012f2 (diff) |
nodejs: set strictDeps and patch bash shebangs
Diffstat (limited to 'pkgs/development/web/nodejs')
-rw-r--r-- | pkgs/development/web/nodejs/nodejs.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pkgs/development/web/nodejs/nodejs.nix b/pkgs/development/web/nodejs/nodejs.nix index e392b62c87dfd..8b615a55dd3a1 100644 --- a/pkgs/development/web/nodejs/nodejs.nix +++ b/pkgs/development/web/nodejs/nodejs.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, fetchurl, openssl, python, zlib, libuv, util-linux, http-parser, runtimeShellPackage +{ lib, stdenv, fetchurl, openssl, python, zlib, libuv, util-linux, http-parser, bash , pkg-config, which, buildPackages # for `.pkgs` attribute , callPackage @@ -50,13 +50,17 @@ let inherit sha256; }; + strictDeps = true; + CC_host = "cc"; CXX_host = "c++"; depsBuildBuild = [ buildPackages.stdenv.cc openssl libuv zlib icu ]; + # NB: technically, we do not need bash in build inputs since all scripts are + # wrappers over the corresponding JS scripts. There are some packages though + # that use bash wrappers, e.g. polaris-web. buildInputs = lib.optionals stdenv.isDarwin [ CoreServices ApplicationServices ] - ++ lib.optional isCross runtimeShellPackage # for patchShebangs - ++ [ zlib libuv openssl http-parser icu ]; + ++ [ zlib libuv openssl http-parser icu bash ]; nativeBuildInputs = [ which pkg-config python ] ++ lib.optionals stdenv.isDarwin [ xcbuild ]; |