3
0
Fork 0
forked from mirrors/nixpkgs

darwin.usr-include: remove

Originally introduced in 8610a344 ('gcc: use special native system
headers for darwin') as a hack, not used anymore.
This commit is contained in:
Dmitry Kalinkin 2022-01-15 04:16:21 -05:00
parent b47203b28f
commit 831e799e47
No known key found for this signature in database
GPG key ID: 5157B3EC8B2CA333
2 changed files with 0 additions and 25 deletions

View file

@ -1,23 +0,0 @@
{lib, stdenv, darwin}:
/*
* This is needed to build GCC on Darwin.
*
* These are the collection of headers that would normally be available under
* /usr/include in macOS machines with command line tools installed. They need
* to be in one folder for gcc to use them correctly.
*/
stdenv.mkDerivation {
name = "darwin-usr-include";
buildInputs = [ darwin.CF stdenv.libc ];
buildCommand = ''
mkdir -p $out
cd $out
ln -sf ${stdenv.libc}/include/* .
mkdir CoreFoundation
ln -sf ${darwin.CF}/Library/Frameworks/CoreFoundation.framework/Headers/* CoreFoundation
'';
meta.platforms = lib.platforms.darwin;
}

View file

@ -154,8 +154,6 @@ impure-cmds // appleSourcePackages // chooseLibs // {
trash = callPackage ../os-specific/darwin/trash { }; trash = callPackage ../os-specific/darwin/trash { };
usr-include = callPackage ../os-specific/darwin/usr-include { };
xattr = pkgs.python3Packages.callPackage ../os-specific/darwin/xattr { }; xattr = pkgs.python3Packages.callPackage ../os-specific/darwin/xattr { };
inherit (pkgs.callPackages ../os-specific/darwin/xcode { }) inherit (pkgs.callPackages ../os-specific/darwin/xcode { })