darwin: build apple stuff in parallel

This commit is contained in:
Domen Kožar 2017-10-30 23:33:20 +00:00
parent 5541a9c26f
commit ea6a4068cf
No known key found for this signature in database
GPG Key ID: C2FFBCAFD2C24246
2 changed files with 5 additions and 5 deletions

View File

@ -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_;

View File

@ -127,8 +127,4 @@ appleDerivation {
mkdir $out/Library/PrivateFrameworks
mv $out/Library/Frameworks/IOKit.framework $out/Library/PrivateFrameworks
'';
meta = {
platforms = stdenv.lib.platforms.darwin;
};
}