python27: Enable building with alternate UCS encoding
This commit is contained in:
parent
ca6952fcb7
commit
d077d22893
@ -16,6 +16,8 @@
|
|||||||
, libffi
|
, libffi
|
||||||
, CF, configd, coreutils
|
, CF, configd, coreutils
|
||||||
, python-setup-hook
|
, python-setup-hook
|
||||||
|
# Some proprietary libs assume UCS2 unicode, especially on darwin :(
|
||||||
|
, ucsEncoding ? 4
|
||||||
# For the Python package set
|
# For the Python package set
|
||||||
, pkgs, packageOverrides ? (self: super: {})
|
, pkgs, packageOverrides ? (self: super: {})
|
||||||
}:
|
}:
|
||||||
@ -107,7 +109,7 @@ let
|
|||||||
configureFlags = [
|
configureFlags = [
|
||||||
"--enable-shared"
|
"--enable-shared"
|
||||||
"--with-threads"
|
"--with-threads"
|
||||||
"--enable-unicode=ucs4"
|
"--enable-unicode=ucs${toString ucsEncoding}"
|
||||||
] ++ optionals (hostPlatform.isCygwin || hostPlatform.isAarch64) [
|
] ++ optionals (hostPlatform.isCygwin || hostPlatform.isAarch64) [
|
||||||
"--with-system-ffi"
|
"--with-system-ffi"
|
||||||
] ++ optionals hostPlatform.isCygwin [
|
] ++ optionals hostPlatform.isCygwin [
|
||||||
|
Loading…
x
Reference in New Issue
Block a user