Merge pull request #22875 from acowley/ghostscript-id

ghostscript: fix installed library name on darwin
This commit is contained in:
Daiderd Jordan 2017-02-16 22:27:01 +01:00 committed by GitHub
commit 2fe40506ac

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 ''