Merge branch 'staging-next' into staging
This commit is contained in:
@@ -3,20 +3,18 @@
|
||||
# Updater dependencies
|
||||
, writeScript, coreutils, gnugrep, jq, curl, common-updater-scripts, nix
|
||||
, gnupg
|
||||
, darwin ? null
|
||||
, darwin, xcbuild
|
||||
, procps
|
||||
}:
|
||||
|
||||
with stdenv.lib;
|
||||
|
||||
{ enableNpm ? true, version, sha256, patches } @args:
|
||||
{ enableNpm ? true, version, sha256, patches ? [] } @args:
|
||||
|
||||
let
|
||||
|
||||
inherit (darwin.apple_sdk.frameworks) CoreServices ApplicationServices;
|
||||
|
||||
|
||||
|
||||
baseName = if enableNpm then "nodejs" else "nodejs-slim";
|
||||
|
||||
sharedLibDeps = { inherit openssl zlib libuv; } // (optionalAttrs (!stdenv.isDarwin) { inherit http-parser; });
|
||||
@@ -49,9 +47,10 @@ in
|
||||
};
|
||||
|
||||
buildInputs = optionals stdenv.isDarwin [ CoreServices ApplicationServices ]
|
||||
++ [ python2 which zlib libuv openssl ]
|
||||
++ optionals stdenv.isLinux [ utillinux http-parser ]
|
||||
++ optionals stdenv.isDarwin [ pkgconfig darwin.cctools ];
|
||||
++ [ python2 zlib libuv openssl http-parser ];
|
||||
|
||||
nativeBuildInputs = [ which utillinux ]
|
||||
++ optionals stdenv.isDarwin [ pkgconfig xcbuild ];
|
||||
|
||||
configureFlags = sharedConfigureFlags ++ [ "--without-dtrace" ] ++ extraConfigFlags;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user