python: Enable building without openssl
This commit is contained in:
@@ -134,6 +134,7 @@ in with passthru; stdenv.mkDerivation {
|
|||||||
"--without-ensurepip"
|
"--without-ensurepip"
|
||||||
"--with-system-expat"
|
"--with-system-expat"
|
||||||
"--with-system-ffi"
|
"--with-system-ffi"
|
||||||
|
] ++ optionals (openssl != null) [
|
||||||
"--with-openssl=${openssl.dev}"
|
"--with-openssl=${openssl.dev}"
|
||||||
] ++ optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
|
] ++ optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
|
||||||
"ac_cv_buggy_getaddrinfo=no"
|
"ac_cv_buggy_getaddrinfo=no"
|
||||||
@@ -241,9 +242,9 @@ in with passthru; stdenv.mkDerivation {
|
|||||||
|
|
||||||
# Enforce that we don't have references to the OpenSSL -dev package, which we
|
# Enforce that we don't have references to the OpenSSL -dev package, which we
|
||||||
# explicitly specify in our configure flags above.
|
# explicitly specify in our configure flags above.
|
||||||
disallowedReferences = [
|
disallowedReferences =
|
||||||
openssl.dev
|
stdenv.lib.optionals (openssl != null) [ openssl.dev ]
|
||||||
] ++ stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
|
++ stdenv.lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
|
||||||
# Ensure we don't have references to build-time packages.
|
# Ensure we don't have references to build-time packages.
|
||||||
# These typically end up in shebangs.
|
# These typically end up in shebangs.
|
||||||
pythonForBuild buildPackages.bash
|
pythonForBuild buildPackages.bash
|
||||||
|
|||||||
Reference in New Issue
Block a user