about summary refs log tree commit diff
path: root/pkgs/development/interpreters
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2019-08-25 20:35:19 -0400
committerMatthew Bauer <mjbauer95@gmail.com>2019-08-25 20:35:19 -0400
commit48d0e9401ee55df3c6a4291df8c6297943de2327 (patch)
tree604f8aedfab63a5d8e21c7d44a235a502ff6cda7 /pkgs/development/interpreters
parent741163efdb1772ed9018231cdf3b12cc5da63112 (diff)
downloadnixlib-48d0e9401ee55df3c6a4291df8c6297943de2327.tar
nixlib-48d0e9401ee55df3c6a4291df8c6297943de2327.tar.gz
nixlib-48d0e9401ee55df3c6a4291df8c6297943de2327.tar.bz2
nixlib-48d0e9401ee55df3c6a4291df8c6297943de2327.tar.lz
nixlib-48d0e9401ee55df3c6a4291df8c6297943de2327.tar.xz
nixlib-48d0e9401ee55df3c6a4291df8c6297943de2327.tar.zst
nixlib-48d0e9401ee55df3c6a4291df8c6297943de2327.zip
cpython: skip macOS system frameworks
We don’t want cpython picking up /Library/Frameworks and
/System/Library/Frameworks which contains Tcl.framework. Instead it
should use the one provided by Nix. this would not be an issue if
sandboxing was enabled, but unfortunately that has its own issues.

Fixes #66647
Diffstat (limited to 'pkgs/development/interpreters')
-rw-r--r--pkgs/development/interpreters/python/cpython/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/python/cpython/default.nix b/pkgs/development/interpreters/python/cpython/default.nix
index 7561fdad7852..60d067c1bf2c 100644
--- a/pkgs/development/interpreters/python/cpython/default.nix
+++ b/pkgs/development/interpreters/python/cpython/default.nix
@@ -83,6 +83,8 @@ in with passthru; stdenv.mkDerivation {
   prePatch = optionalString stdenv.isDarwin ''
     substituteInPlace configure --replace '`/usr/bin/arch`' '"i386"'
     substituteInPlace configure --replace '-Wl,-stack_size,1000000' ' '
+  '' + optionalString (stdenv.isDarwin && x11Support) ''
+    substituteInPlace setup.py --replace /Library/Frameworks /no-such-path
   '';
 
   patches = [