summary refs log tree commit diff
path: root/pkgs/top-level/static.nix
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2019-09-09 22:42:03 -0400
committerMatthew Bauer <mjbauer95@gmail.com>2019-09-09 22:42:03 -0400
commit6cdbc4de22d34fb28e9bb3110d6ff9702c400f89 (patch)
treeeca1001f6869a09b1542b71a14cb2b1aa7cdc42f /pkgs/top-level/static.nix
parent26f9a8a5738720d95e278030e9b6f34c9b7f3fc8 (diff)
downloadnixpkgs-6cdbc4de22d34fb28e9bb3110d6ff9702c400f89.tar
nixpkgs-6cdbc4de22d34fb28e9bb3110d6ff9702c400f89.tar.gz
nixpkgs-6cdbc4de22d34fb28e9bb3110d6ff9702c400f89.tar.bz2
nixpkgs-6cdbc4de22d34fb28e9bb3110d6ff9702c400f89.tar.lz
nixpkgs-6cdbc4de22d34fb28e9bb3110d6ff9702c400f89.tar.xz
nixpkgs-6cdbc4de22d34fb28e9bb3110d6ff9702c400f89.tar.zst
nixpkgs-6cdbc4de22d34fb28e9bb3110d6ff9702c400f89.zip
static: disable python on macOS
We get an infinite recursion otherwise due to some issue in darwin
bootstrapping.

Fixes #68393
Diffstat (limited to 'pkgs/top-level/static.nix')
-rw-r--r--pkgs/top-level/static.nix8
1 files changed, 5 insertions, 3 deletions
diff --git a/pkgs/top-level/static.nix b/pkgs/top-level/static.nix
index eac84cfc1a8..bc6c3525f77 100644
--- a/pkgs/top-level/static.nix
+++ b/pkgs/top-level/static.nix
@@ -14,7 +14,7 @@ self: super: let
   inherit (super.stdenvAdapters) makeStaticBinaries
                                  makeStaticLibraries
                                  propagateBuildInputs;
-  inherit (super.lib) foldl optional flip id composeExtensions;
+  inherit (super.lib) foldl optional flip id composeExtensions optionalAttrs;
   inherit (super) makeSetupHook;
 
   # Best effort static binaries. Will still be linked to libSystem,
@@ -72,10 +72,12 @@ in {
   ncurses = super.ncurses.override {
     enableStatic = true;
   };
-  libxml2 = super.libxml2.override {
+  libxml2 = super.libxml2.override ({
     enableShared = false;
     enableStatic = true;
-  };
+  } // optionalAttrs super.stdenv.hostPlatform.isDarwin {
+    pythonSupport = false;
+  });
   zlib = super.zlib.override {
     static = true;
     shared = false;