|
|
|
@ -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 = { |
|
|
|
|