Merge pull request #12161 from svenkeidel/ghostscript-fix-dynamic-library-path

ghostscript: fix dynamic library path, fixes #11165
This commit is contained in:
Peter Simons 2016-01-05 17:44:34 +01:00
commit d110849d7b

View File

@ -93,6 +93,10 @@ stdenv.mkDerivation rec {
ln -s "${fonts}" "$out/share/ghostscript/fonts"
'';
preFixup = stdenv.lib.strings.optionalString stdenv.isDarwin ''
install_name_tool -change libgs.dylib.${version} $out/lib/libgs.dylib.${version} $out/bin/gs
'';
meta = {
homepage = "http://www.ghostscript.com/";
description = "PostScript interpreter (mainline version)";