inkscape: fix runtime error on darwin

This commit is contained in:
Weijia Wang 2023-11-06 12:56:50 +01:00
parent 99ab0ebeab
commit c5b219ec90

View File

@ -159,8 +159,9 @@ stdenv.mkDerivation rec {
# Make sure PyXML modules can be found at run-time.
postInstall = lib.optionalString stdenv.isDarwin ''
install_name_tool -change $out/lib/libinkscape_base.dylib $out/lib/inkscape/libinkscape_base.dylib $out/bin/inkscape
install_name_tool -change $out/lib/libinkscape_base.dylib $out/lib/inkscape/libinkscape_base.dylib $out/bin/inkview
for f in $out/lib/inkscape/*.dylib; do
ln -s $f $out/lib/$(basename $f)
done
'';
meta = with lib; {