ghostscript: fix installed library name on darwin

This commit is contained in:
Anthony Cowley 2017-02-16 13:32:39 -05:00
parent 19a9099eb2
commit c37464a9b1

View File

@ -92,6 +92,10 @@ stdenv.mkDerivation rec {
mv "$out/share/ghostscript/${version}"/{doc,examples} "$doc/share/ghostscript/${version}/"
ln -s "${fonts}" "$out/share/ghostscript/fonts"
'' + stdenv.lib.optionalString stdenv.isDarwin ''
for file in $out/lib/*.dylib* ; do
install_name_tool -id "$file" $file
done
'';
preFixup = lib.optionalString stdenv.isDarwin ''