diff options
author | Shea Levy <shea@shealevy.com> | 2017-12-09 12:00:52 -0500 |
---|---|---|
committer | Shea Levy <shea@shealevy.com> | 2017-12-09 12:00:52 -0500 |
commit | d077d2289325fd2ec5a22cfbf7ba62ad542d5ef3 (patch) | |
tree | fdeda310f9be6cc402cc13c901de62b01026c5e4 /pkgs/development/interpreters | |
parent | ca6952fcb7de597e0678198459473ebbc4a0e69b (diff) | |
download | nixlib-d077d2289325fd2ec5a22cfbf7ba62ad542d5ef3.tar nixlib-d077d2289325fd2ec5a22cfbf7ba62ad542d5ef3.tar.gz nixlib-d077d2289325fd2ec5a22cfbf7ba62ad542d5ef3.tar.bz2 nixlib-d077d2289325fd2ec5a22cfbf7ba62ad542d5ef3.tar.lz nixlib-d077d2289325fd2ec5a22cfbf7ba62ad542d5ef3.tar.xz nixlib-d077d2289325fd2ec5a22cfbf7ba62ad542d5ef3.tar.zst nixlib-d077d2289325fd2ec5a22cfbf7ba62ad542d5ef3.zip |
python27: Enable building with alternate UCS encoding
Diffstat (limited to 'pkgs/development/interpreters')
-rw-r--r-- | pkgs/development/interpreters/python/cpython/2.7/default.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/interpreters/python/cpython/2.7/default.nix b/pkgs/development/interpreters/python/cpython/2.7/default.nix index c7483a815297..b28df2501aac 100644 --- a/pkgs/development/interpreters/python/cpython/2.7/default.nix +++ b/pkgs/development/interpreters/python/cpython/2.7/default.nix @@ -16,6 +16,8 @@ , libffi , CF, configd, coreutils , python-setup-hook +# Some proprietary libs assume UCS2 unicode, especially on darwin :( +, ucsEncoding ? 4 # For the Python package set , pkgs, packageOverrides ? (self: super: {}) }: @@ -107,7 +109,7 @@ let configureFlags = [ "--enable-shared" "--with-threads" - "--enable-unicode=ucs4" + "--enable-unicode=ucs${toString ucsEncoding}" ] ++ optionals (hostPlatform.isCygwin || hostPlatform.isAarch64) [ "--with-system-ffi" ] ++ optionals hostPlatform.isCygwin [ |