libxslt: make python3 an input

This commit is contained in:
Ivan Babrou
2021-02-01 08:47:36 +01:00
committed by Frederik Rietdijk
parent 86de9261f8
commit b2ce768e60
3 changed files with 6 additions and 8 deletions
@@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, fetchpatch, libxml2, findXMLCatalogs, gettext, python, libgcrypt
{ lib, stdenv, fetchurl, fetchpatch, libxml2, findXMLCatalogs, gettext, python3, libgcrypt
, cryptoSupport ? false
, pythonSupport ? stdenv.buildPlatform == stdenv.hostPlatform
}:
@@ -16,7 +16,7 @@ stdenv.mkDerivation rec {
buildInputs = [ libxml2.dev ]
++ lib.optional stdenv.isDarwin gettext
++ lib.optionals pythonSupport [ libxml2.py python ]
++ lib.optionals pythonSupport [ libxml2.py python3 ]
++ lib.optionals cryptoSupport [ libgcrypt ];
propagatedBuildInputs = [ findXMLCatalogs ];
@@ -26,7 +26,7 @@ stdenv.mkDerivation rec {
"--without-debug"
"--without-mem-debug"
"--without-debugger"
] ++ lib.optional pythonSupport "--with-python=${python}"
] ++ lib.optional pythonSupport "--with-python=${python3}"
++ lib.optional (!cryptoSupport) "--without-crypto";
postFixup = ''
@@ -36,7 +36,7 @@ stdenv.mkDerivation rec {
'' + lib.optionalString pythonSupport ''
mkdir -p $py/nix-support
echo ${libxml2.py} >> $py/nix-support/propagated-build-inputs
moveToOutput ${python.libPrefix} "$py"
moveToOutput ${python3.libPrefix} "$py"
'';
passthru = {