Merge pull request #39940 from matthewbauer/work

macOS closure-size reduction
This commit is contained in:
Matthew Justin Bauer 2018-05-06 04:27:02 +00:00 committed by GitHub
commit 5f65ec3f22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 9 additions and 5 deletions

View File

@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
};
patches = [ ./absolute-paths.diff ];
outputs = [ "out" "man" "doc" "info" ];
outputs = [ "out" "dev" "man" "doc" "info" ];
hardeningDisable = [ "format" ];

View File

@ -20,5 +20,6 @@ appleDerivation {
postInstall = ''
mv $out/usr/local/include $out/include
rm -rf $out/usr
'';
}

View File

@ -3,10 +3,13 @@
removefile, libresolv, Libnotify, libplatform, libpthread, mDNSResponder, launchd, libutil, version }:
appleDerivation rec {
phases = [ "unpackPhase" "installPhase" ];
dontBuild = true;
dontConfigure = true;
nativeBuildInputs = [ cpio ];
outputs = [ "out" "dev" ];
installPhase = ''
export NIX_ENFORCE_PURITY=

View File

@ -225,7 +225,7 @@ in rec {
allowedRequisites =
[ bootstrapTools ] ++
(with pkgs; [ xz.bin xz.out libcxx libcxxabi ]) ++
(with pkgs.darwin; [ dyld Libsystem CF ICU locale ]);
(with pkgs.darwin; [ dyld Libsystem Libsystem.dev CF ICU locale ]);
overrides = persistent;
};
@ -263,7 +263,7 @@ in rec {
allowedRequisites =
[ bootstrapTools ] ++
(with pkgs; [ xz.bin xz.out bash libcxx libcxxabi ]) ++
(with pkgs.darwin; [ dyld ICU Libsystem locale ]);
(with pkgs.darwin; [ dyld ICU Libsystem Libsystem.dev locale ]);
overrides = persistent;
};
@ -383,7 +383,7 @@ in rec {
binutils.bintools darwin.binutils darwin.binutils.bintools
cc.expand-response-params
]) ++ (with pkgs.darwin; [
dyld Libsystem CF cctools ICU libiconv locale
dyld Libsystem Libsystem.dev CF cctools ICU libiconv locale
]);
overrides = self: super: