static: disable python on macOS

We get an infinite recursion otherwise due to some issue in darwin
bootstrapping.

Fixes #68393
This commit is contained in:
Matthew Bauer 2019-09-09 22:42:03 -04:00
parent 26f9a8a573
commit 6cdbc4de22

View file

@ -14,7 +14,7 @@ self: super: let
inherit (super.stdenvAdapters) makeStaticBinaries inherit (super.stdenvAdapters) makeStaticBinaries
makeStaticLibraries makeStaticLibraries
propagateBuildInputs; propagateBuildInputs;
inherit (super.lib) foldl optional flip id composeExtensions; inherit (super.lib) foldl optional flip id composeExtensions optionalAttrs;
inherit (super) makeSetupHook; inherit (super) makeSetupHook;
# Best effort static binaries. Will still be linked to libSystem, # Best effort static binaries. Will still be linked to libSystem,
@ -72,10 +72,12 @@ in {
ncurses = super.ncurses.override { ncurses = super.ncurses.override {
enableStatic = true; enableStatic = true;
}; };
libxml2 = super.libxml2.override { libxml2 = super.libxml2.override ({
enableShared = false; enableShared = false;
enableStatic = true; enableStatic = true;
}; } // optionalAttrs super.stdenv.hostPlatform.isDarwin {
pythonSupport = false;
});
zlib = super.zlib.override { zlib = super.zlib.override {
static = true; static = true;
shared = false; shared = false;