diff options
author | Sandro Jäckel <sandro.jaeckel@gmail.com> | 2022-01-22 19:15:33 +0100 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2022-01-26 14:30:10 -0800 |
commit | be1fef9258f3fbd2bcafb54b2bf40b2c25675a14 (patch) | |
tree | d1a7533ac8186e23dba8a713af3e66851f52b53e /pkgs/development/interpreters/python | |
parent | 4545189568dedab675ebb873bf316ddb99710d55 (diff) | |
download | nixpkgs-be1fef9258f3fbd2bcafb54b2bf40b2c25675a14.tar nixpkgs-be1fef9258f3fbd2bcafb54b2bf40b2c25675a14.tar.gz nixpkgs-be1fef9258f3fbd2bcafb54b2bf40b2c25675a14.tar.bz2 nixpkgs-be1fef9258f3fbd2bcafb54b2bf40b2c25675a14.tar.lz nixpkgs-be1fef9258f3fbd2bcafb54b2bf40b2c25675a14.tar.xz nixpkgs-be1fef9258f3fbd2bcafb54b2bf40b2c25675a14.tar.zst nixpkgs-be1fef9258f3fbd2bcafb54b2bf40b2c25675a14.zip |
cpython: mime-types -> mailcap
Diffstat (limited to 'pkgs/development/interpreters/python')
-rw-r--r-- | pkgs/development/interpreters/python/cpython/default.nix | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/pkgs/development/interpreters/python/cpython/default.nix b/pkgs/development/interpreters/python/cpython/default.nix index 7a2a79b8cfe..66aaf08c638 100644 --- a/pkgs/development/interpreters/python/cpython/default.nix +++ b/pkgs/development/interpreters/python/cpython/default.nix @@ -4,7 +4,7 @@ , libffi , gdbm , xz -, mime-types ? null, mimetypesSupport ? true +, mailcap, mimetypesSupport ? true , ncurses , openssl , readline @@ -62,8 +62,6 @@ assert x11Support -> tcl != null assert bluezSupport -> bluez != null; -assert mimetypesSupport -> mime-types != null; - assert lib.assertMsg (enableOptimizations -> (!stdenv.cc.isClang)) "Optimizations with clang are not supported. configure: error: llvm-profdata is required for a --enable-optimizations build but could not be found."; @@ -277,7 +275,7 @@ in with passthru; stdenv.mkDerivation { --replace "'/bin/sh'" "'${bash}/bin/sh'" '' + optionalString mimetypesSupport '' substituteInPlace Lib/mimetypes.py \ - --replace "@mime-types@" "${mime-types}" + --replace "@mime-types@" "${mailcap}" '' + optionalString (x11Support && (tix != null)) '' substituteInPlace "Lib/tkinter/tix.py" --replace "os.environ.get('TIX_LIBRARY')" "os.environ.get('TIX_LIBRARY') or '${tix}/lib'" ''; |