git.iko.soy/typeable/nixpkgs
on master help sign in
cctools: Don't always bring in headers

- Give cctools a dev output for the headers - Update Libsystem to grab the headers from that dev output - Don't include the headers in Darwin binutils, just as GNU Binutils no longer does.

commit652c2beda9a5351ddd07e422215100aca75412ae authorJohn Ericson <John.Ericson@Obsidian.Systems> dateThu 16 Nov 2017, 15:00 (9 years ago) parent32a6838
3 files changed+3−5
pkgs/os-specific/darwin/apple-source-releases/Libsystem/default.nix+1−1 pkgs/os-specific/darwin/binutils/default.nix−4 pkgs/os-specific/darwin/cctools/port.nix+2
pkgs/os-specific/darwin/apple-source-releases/Libsystem/default.nix+1−1
@@ -23,7 +23,7 @@ appleDerivation rec {
2323 (cd $dep/include && find . -name '*.h' | cpio -pdm $out/include)
2424 done
2525
26− (cd ${cctools}/include/mach-o && find . -name '*.h' | cpio -pdm $out/include/mach-o)
26+ (cd ${cctools.dev}/include/mach-o && find . -name '*.h' | cpio -pdm $out/include/mach-o)
2727
2828 cat <<EOF > $out/include/TargetConditionals.h
2929 #ifndef __TARGETCONDITIONALS__
pkgs/os-specific/darwin/binutils/default.nix−4
@@ -37,10 +37,6 @@ stdenv.mkDerivation {
3737 ln -sf "${cctools}/bin/$i" "$out/bin/$i"
3838 done
3939
40− for i in ${cctools}/include/*; do
41− ln -s "$i" "$out/include/$(basename $i)"
42− done
43−
4440 # FIXME: this will give us incorrect man pages for bits of cctools
4541 ln -s ${binutils-raw.out}/share $out/share
4642
pkgs/os-specific/darwin/cctools/port.nix+2
@@ -29,6 +29,8 @@ let
2929 sha256 = "0l45mvyags56jfi24rawms8j2ihbc45mq7v13pkrrwppghqrdn52";
3030 };
3131
32+ outputs = [ "out" "dev" ];
33+
3234 nativeBuildInputs = [ autoconf automake libtool_2 ];
3335 buildInputs = [ libuuid ] ++
3436 # Only need llvm and clang if the stdenv isn't already clang-based (TODO: just make a stdenv.cc.isClang)