Merge pull request #39940 from matthewbauer/work
macOS closure-size reduction
This commit is contained in:
commit
5f65ec3f22
|
@ -10,7 +10,7 @@ stdenv.mkDerivation rec {
|
|||
};
|
||||
patches = [ ./absolute-paths.diff ];
|
||||
|
||||
outputs = [ "out" "man" "doc" "info" ];
|
||||
outputs = [ "out" "dev" "man" "doc" "info" ];
|
||||
|
||||
hardeningDisable = [ "format" ];
|
||||
|
||||
|
|
|
@ -20,5 +20,6 @@ appleDerivation {
|
|||
|
||||
postInstall = ''
|
||||
mv $out/usr/local/include $out/include
|
||||
rm -rf $out/usr
|
||||
'';
|
||||
}
|
||||
|
|
|
@ -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=
|
||||
|
||||
|
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue