mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 14:57:28 +03:00
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 ({
|
appleDerivation_ = name: version: sha256: attrs: stdenv.mkDerivation ({
|
||||||
inherit version;
|
inherit version;
|
||||||
name = "${name}-${version}";
|
name = "${name}-${version}";
|
||||||
|
enableParallelBuilding = true;
|
||||||
|
meta = {
|
||||||
|
platforms = stdenv.lib.platforms.darwin;
|
||||||
|
};
|
||||||
} // (if attrs ? srcs then {} else {
|
} // (if attrs ? srcs then {} else {
|
||||||
src = fetchApple version sha256 name;
|
src = fetchApple version sha256 name;
|
||||||
}) // attrs);
|
}) // attrs);
|
||||||
@ -153,7 +157,7 @@ let
|
|||||||
name = builtins.elemAt (stdenv.lib.splitString "/" namePath) 0;
|
name = builtins.elemAt (stdenv.lib.splitString "/" namePath) 0;
|
||||||
appleDerivation = appleDerivation_ name version sha256;
|
appleDerivation = appleDerivation_ name version sha256;
|
||||||
callPackage = pkgs.newScope (packages // pkgs.darwin // { inherit appleDerivation name version; });
|
callPackage = pkgs.newScope (packages // pkgs.darwin // { inherit appleDerivation name version; });
|
||||||
in callPackage (./. + builtins.toPath "/${namePath}");
|
in callPackage (./. + "/${namePath}");
|
||||||
|
|
||||||
libsecPackage = pkgs.callPackage ./libsecurity_generic {
|
libsecPackage = pkgs.callPackage ./libsecurity_generic {
|
||||||
inherit applePackage appleDerivation_;
|
inherit applePackage appleDerivation_;
|
||||||
|
@ -127,8 +127,4 @@ appleDerivation {
|
|||||||
mkdir $out/Library/PrivateFrameworks
|
mkdir $out/Library/PrivateFrameworks
|
||||||
mv $out/Library/Frameworks/IOKit.framework $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