darwin/darwin-stubs: init

This commit is contained in:
Andrew Childs 2020-09-10 19:06:20 +09:00
parent ddd17201ab
commit 8946ff8d71
3 changed files with 28 additions and 4 deletions

View File

@ -0,0 +1,20 @@
{ stdenv, fetchFromGitHub }:
stdenv.mkDerivation {
pname = "darwin-stubs";
version = "10.12";
src = fetchFromGitHub {
owner = "NixOS";
repo = "darwin-stubs";
rev = "80b3d4a57d3454c975eefd984c804dbd76f04ef2";
sha256 = "0sslg4rmskms8ixixv1gvnrvvvmn723vbfjj6mcn24fj2ncg38y7";
};
dontBuild = true;
installPhase = ''
mkdir $out
cp -vr stubs/$version/* $out
'';
}

View File

@ -301,7 +301,8 @@ in rec {
darwin = super.darwin // {
inherit (darwin)
binutils dyld Libsystem xnu configd ICU libdispatch libclosure launchd CF;
binutils dyld Libsystem xnu configd ICU libdispatch libclosure
launchd CF darwin-stubs;
};
};
in with prevStage; stageFun 2 prevStage {
@ -345,7 +346,8 @@ in rec {
darwin = super.darwin // {
inherit (darwin)
dyld Libsystem xnu configd libdispatch libclosure launchd libiconv locale;
dyld Libsystem xnu configd libdispatch libclosure launchd libiconv
locale darwin-stubs;
};
};
in with prevStage; stageFun 3 prevStage {
@ -403,7 +405,7 @@ in rec {
in { inherit tools libraries; } // tools // libraries);
darwin = super.darwin // rec {
inherit (darwin) dyld Libsystem libiconv locale;
inherit (darwin) dyld Libsystem libiconv locale darwin-stubs;
CF = super.darwin.CF.override {
inherit libxml2;
@ -502,7 +504,7 @@ in rec {
inherit cc;
darwin = super.darwin // {
inherit (prevStage.darwin) CF;
inherit (prevStage.darwin) CF darwin-stubs;
xnu = super.darwin.xnu.override { inherit (prevStage) python3; };
};
});

View File

@ -41,6 +41,8 @@ in
DarwinTools = callPackage ../os-specific/darwin/DarwinTools { };
darwin-stubs = callPackage ../os-specific/darwin/darwin-stubs { };
maloader = callPackage ../os-specific/darwin/maloader {
inherit (darwin) opencflite;
};