From 48d0e9401ee55df3c6a4291df8c6297943de2327 Mon Sep 17 00:00:00 2001 From: Matthew Bauer Date: Sun, 25 Aug 2019 20:35:19 -0400 Subject: cpython: skip macOS system frameworks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- pkgs/development/interpreters/python/cpython/default.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'pkgs/development/interpreters') 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 = [ -- cgit 1.4.1