mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-10 08:39:08 +03:00
imagemagick: fix ghostscript reference in .la files
This commit is contained in:
parent
126d8dba96
commit
5c014feb0a
@ -40,7 +40,13 @@ stdenv.mkDerivation rec {
|
||||
propagatedBuildInputs =
|
||||
[ bzip2 freetype libjpeg libX11 libXext libXt lcms2 ];
|
||||
|
||||
postInstall = ''(cd "$out/include" && ln -s ImageMagick* ImageMagick)'';
|
||||
postInstall = ''
|
||||
(cd "$out/include" && ln -s ImageMagick* ImageMagick)
|
||||
'' + lib.optionalString (ghostscript != null) ''
|
||||
for la in $out/lib/*.la; do
|
||||
sed 's|-lgs|-L${ghostscript}/lib -lgs|' -i $la
|
||||
done
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = http://www.imagemagick.org/;
|
||||
|
Loading…
Reference in New Issue
Block a user