diff options
author | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-06-22 17:52:12 +0300 |
---|---|---|
committer | Weijia Wang <9713184+wegank@users.noreply.github.com> | 2023-06-22 17:52:12 +0300 |
commit | 82e6dcefb978a70a9fd12ed8cd882d71cacd4468 (patch) | |
tree | 2ff7f7de3d298a43f556a37749f37fa331404ad1 /pkgs/development/interpreters/python | |
parent | f1992487d64870512fc73ab78374d747953b485a (diff) | |
download | nixpkgs-82e6dcefb978a70a9fd12ed8cd882d71cacd4468.tar nixpkgs-82e6dcefb978a70a9fd12ed8cd882d71cacd4468.tar.gz nixpkgs-82e6dcefb978a70a9fd12ed8cd882d71cacd4468.tar.bz2 nixpkgs-82e6dcefb978a70a9fd12ed8cd882d71cacd4468.tar.lz nixpkgs-82e6dcefb978a70a9fd12ed8cd882d71cacd4468.tar.xz nixpkgs-82e6dcefb978a70a9fd12ed8cd882d71cacd4468.tar.zst nixpkgs-82e6dcefb978a70a9fd12ed8cd882d71cacd4468.zip |
python311Packages.tkinter: fix runtime error on darwin
Diffstat (limited to 'pkgs/development/interpreters/python')
-rw-r--r-- | pkgs/development/interpreters/python/cpython/default.nix | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/interpreters/python/cpython/default.nix b/pkgs/development/interpreters/python/cpython/default.nix index 07f8a7d3c1b..d469032e13b 100644 --- a/pkgs/development/interpreters/python/cpython/default.nix +++ b/pkgs/development/interpreters/python/cpython/default.nix @@ -377,6 +377,9 @@ in with passthru; stdenv.mkDerivation { '' + optionalString stdenv.isDarwin '' # Override the auto-detection in setup.py, which assumes a universal build export PYTHON_DECIMAL_WITH_MACHINE=${if stdenv.isAarch64 then "uint128" else "x64"} + '' + optionalString (stdenv.isDarwin && x11Support && pythonAtLeast "3.11") '' + export TCLTK_LIBS="-L${tcl}/lib -L${tk}/lib -l${tcl.libPrefix} -l${tk.libPrefix}" + export TCLTK_CFLAGS="-I${tcl}/include -I${tk}/include" '' + optionalString (isPy3k && pythonOlder "3.7") '' # Determinism: The interpreter is patched to write null timestamps when compiling Python files # so Python doesn't try to update the bytecode when seeing frozen timestamps in Nix's store. |