@ -1,10 +1,8 @@
{ stdenv , fetchurl , fetchpatch , libxml2 , findXMLCatalogs , python , libgcrypt
{ stdenv , fetchurl , fetchpatch , libxml2 , findXMLCatalogs , gettext , python , libgcrypt
, cryptoSupport ? false
, pythonSupport ? stdenv . buildPlatform == stdenv . hostPlatform
} :
with stdenv . lib ;
stdenv . mkDerivation rec {
pname = " l i b x s l t " ;
version = " 1 . 1 . 3 4 " ;
@ -17,6 +15,7 @@ stdenv.mkDerivation rec {
outputs = [ " b i n " " d e v " " o u t " " m a n " " d o c " ] ++ stdenv . lib . optional pythonSupport " p y " ;
buildInputs = [ libxml2 . dev ]
++ stdenv . lib . optional stdenv . isDarwin gettext
++ stdenv . lib . optionals pythonSupport [ libxml2 . py python ]
++ stdenv . lib . optionals cryptoSupport [ libgcrypt ] ;
@ -27,14 +26,14 @@ stdenv.mkDerivation rec {
" - - w i t h o u t - d e b u g "
" - - w i t h o u t - m e m - d e b u g "
" - - w i t h o u t - d e b u g g e r "
] ++ optional pythonSupport " - - w i t h - p y t h o n = ${ python } "
++ optional ( ! cryptoSupport ) " - - w i t h o u t - c r y p t o " ;
] ++ stdenv . lib . optional pythonSupport " - - w i t h - p y t h o n = ${ python } "
++ stdenv . lib . optional ( ! cryptoSupport ) " - - w i t h o u t - c r y p t o " ;
postFixup = ''
moveToOutput bin/xslt-config " $ d e v "
moveToOutput lib/xsltConf.sh " $ d e v "
moveToOutput share/man/man1 " $ b i n "
'' + o p t i o n a l S t r i n g p y t h o n S u p p o r t ''
'' + s t d e n v . l i b . op t i o n a l S t r i n g p y t h o n S u p p o r t ''
mkdir - p $ py/nix-support
echo $ { libxml2 . py } > > $ py/nix-support/propagated-build-inputs
moveToOutput $ { python . libPrefix } " $ p y "