Merge pull request #31013 from NixOS/darwin-parallel
darwin: build applle stuff in parallel
This commit is contained in:
commit
dc1ef6ce8c
@ -144,6 +144,10 @@ let
|
||||
appleDerivation_ = name: version: sha256: attrs: stdenv.mkDerivation ({
|
||||
inherit version;
|
||||
name = "${name}-${version}";
|
||||
enableParallelBuilding = true;
|
||||
meta = {
|
||||
platforms = stdenv.lib.platforms.darwin;
|
||||
};
|
||||
} // (if attrs ? srcs then {} else {
|
||||
src = fetchApple version sha256 name;
|
||||
}) // attrs);
|
||||
@ -153,7 +157,7 @@ let
|
||||
name = builtins.elemAt (stdenv.lib.splitString "/" namePath) 0;
|
||||
appleDerivation = appleDerivation_ name version sha256;
|
||||
callPackage = pkgs.newScope (packages // pkgs.darwin // { inherit appleDerivation name version; });
|
||||
in callPackage (./. + builtins.toPath "/${namePath}");
|
||||
in callPackage (./. + "/${namePath}");
|
||||
|
||||
libsecPackage = pkgs.callPackage ./libsecurity_generic {
|
||||
inherit applePackage appleDerivation_;
|
||||
|
@ -127,8 +127,4 @@ appleDerivation {
|
||||
mkdir $out/Library/PrivateFrameworks
|
||||
mv $out/Library/Frameworks/IOKit.framework $out/Library/PrivateFrameworks
|
||||
'';
|
||||
|
||||
meta = {
|
||||
platforms = stdenv.lib.platforms.darwin;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user