imagemagick: disable ghostscript on darwin, to make it work
This commit is contained in:
parent
a0d45d6f9b
commit
2dd59fc4cf
|
@ -3,7 +3,7 @@
|
||||||
, bzip2
|
, bzip2
|
||||||
, freetype
|
, freetype
|
||||||
, graphviz
|
, graphviz
|
||||||
, ghostscript
|
, ghostscript ? null
|
||||||
, libjpeg
|
, libjpeg
|
||||||
, libpng
|
, libpng
|
||||||
, libtiff
|
, libtiff
|
||||||
|
@ -27,16 +27,17 @@ stdenv.mkDerivation rec {
|
||||||
sha256 = "0m0sa4jxsvm8pf9nfvkzlbzq13d1lj15lfz6jif12l6ywyh2c1cs";
|
sha256 = "0m0sa4jxsvm8pf9nfvkzlbzq13d1lj15lfz6jif12l6ywyh2c1cs";
|
||||||
};
|
};
|
||||||
|
|
||||||
configureFlags = ''
|
configureFlags = "" + stdenv.lib.optionalString (ghostscript != null && stdenv.system != "x86_64-darwin") ''
|
||||||
--with-gs-font-dir=${ghostscript}/share/ghostscript/fonts
|
--with-gs-font-dir=${ghostscript}/share/ghostscript/fonts
|
||||||
--with-gslib
|
--with-gslib
|
||||||
|
'' + ''
|
||||||
--with-frozenpaths
|
--with-frozenpaths
|
||||||
${if librsvg != null then "--with-rsvg" else ""}
|
${if librsvg != null then "--with-rsvg" else ""}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs =
|
propagatedBuildInputs =
|
||||||
[ bzip2 freetype ghostscript libjpeg libpng libtiff libxml2 zlib librsvg
|
[ bzip2 freetype libjpeg libpng libtiff libxml2 zlib librsvg
|
||||||
libtool jasper libX11 ];
|
libtool jasper libX11 ] ++ stdenv.lib.optional (ghostscript != null && stdenv.system != "x86_64-darwin") ghostscript;
|
||||||
|
|
||||||
buildInputs = [ tetex graphviz ];
|
buildInputs = [ tetex graphviz ];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue