swift-corelibs: init
moves swift-corelibs-corefoundation to own dir also adds libdispatch
This commit is contained in:
parent
c3ce4ee723
commit
72f8df9465
8
pkgs/os-specific/darwin/swift-corelibs/default.nix
Normal file
8
pkgs/os-specific/darwin/swift-corelibs/default.nix
Normal file
@ -0,0 +1,8 @@
|
||||
{callPackage, stdenv, darwin, xcbuild}:
|
||||
|
||||
rec {
|
||||
corefoundation = callPackage ./corefoundation.nix {};
|
||||
libdispatch = callPackage ./libdispatch.nix {
|
||||
inherit (darwin) apple_sdk_sierra xnu;
|
||||
};
|
||||
}
|
12
pkgs/os-specific/darwin/swift-corelibs/libdispatch.nix
Normal file
12
pkgs/os-specific/darwin/swift-corelibs/libdispatch.nix
Normal file
@ -0,0 +1,12 @@
|
||||
{ stdenv, fetchFromGitHub, cmake, apple_sdk_sierra, xnu-new }:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "swift-corelibs-libdispatch";
|
||||
src = fetchFromGitHub {
|
||||
owner = "apple";
|
||||
repo = name;
|
||||
rev = "f83b5a498bad8e9ff8916183cf6e8ccf677c346b";
|
||||
sha256 = "1czkyyc9llq2mnqfp19mzcfsxzas0y8zrk0gr5hg60acna6jkz2l";
|
||||
};
|
||||
buildInputs = [ cmake apple_sdk_sierra.sdk xnu-new ];
|
||||
}
|
@ -57,12 +57,12 @@ in
|
||||
|
||||
stubs = callPackages ../os-specific/darwin/stubs { };
|
||||
|
||||
swift-corefoundation = callPackage ../os-specific/darwin/swift-corefoundation { };
|
||||
|
||||
trash = callPackage ../os-specific/darwin/trash { inherit (darwin.apple_sdk) frameworks; };
|
||||
|
||||
usr-include = callPackage ../os-specific/darwin/usr-include { };
|
||||
|
||||
xcode = callPackage ../os-specific/darwin/xcode { };
|
||||
|
||||
swift-corelibs = callPackages ../os-specific/darwin/swift-corelibs { };
|
||||
|
||||
})
|
||||
|
Loading…
Reference in New Issue
Block a user