3
0
Fork 0
forked from mirrors/nixpkgs

libxml2: enable strictDeps and enable pythonSupport when cross

This commit is contained in:
Artturin 2022-10-07 16:31:39 +03:00
parent 37bd39839a
commit 9069a064f8

View file

@ -12,7 +12,7 @@
, ncurses
, findXMLCatalogs
, libiconv
, pythonSupport ? enableShared && stdenv.buildPlatform == stdenv.hostPlatform
, pythonSupport ? enableShared
, icuSupport ? false
, icu
, enableShared ? stdenv.hostPlatform.libc != "msvcrt" && !stdenv.hostPlatform.isStatic
@ -60,6 +60,8 @@ stdenv.mkDerivation rec {
})
];
strictDeps = true;
nativeBuildInputs = [
pkg-config
autoreconfHook
@ -94,7 +96,8 @@ stdenv.mkDerivation rec {
(lib.enableFeature enableStatic "static")
(lib.enableFeature enableShared "shared")
(lib.withFeature icuSupport "icu")
(lib.withFeatureAs pythonSupport "python" python)
(lib.withFeature pythonSupport "python")
(lib.optionalString pythonSupport "PYTHON=${python.pythonForBuild.interpreter}")
];
installFlags = lib.optionals pythonSupport [