summary refs log tree commit diff
diff options
context:
space:
mode:
authorWeijia Wang <9713184+wegank@users.noreply.github.com>2023-11-06 12:56:50 +0100
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2023-11-06 12:56:50 +0100
commitc5b219ec902db9fd069f7f0d6ac7dd864d5d9c47 (patch)
treea85b976087782753fec7526f929d61aa5a1baee7
parent99ab0ebeabff4f694eb7179cce7cd1f9da772060 (diff)
downloadnixpkgs-c5b219ec902db9fd069f7f0d6ac7dd864d5d9c47.tar
nixpkgs-c5b219ec902db9fd069f7f0d6ac7dd864d5d9c47.tar.gz
nixpkgs-c5b219ec902db9fd069f7f0d6ac7dd864d5d9c47.tar.bz2
nixpkgs-c5b219ec902db9fd069f7f0d6ac7dd864d5d9c47.tar.lz
nixpkgs-c5b219ec902db9fd069f7f0d6ac7dd864d5d9c47.tar.xz
nixpkgs-c5b219ec902db9fd069f7f0d6ac7dd864d5d9c47.tar.zst
nixpkgs-c5b219ec902db9fd069f7f0d6ac7dd864d5d9c47.zip
inkscape: fix runtime error on darwin
-rw-r--r--pkgs/applications/graphics/inkscape/default.nix5
1 files changed, 3 insertions, 2 deletions
diff --git a/pkgs/applications/graphics/inkscape/default.nix b/pkgs/applications/graphics/inkscape/default.nix
index 059dd8bf7c6..85b067d9fb2 100644
--- a/pkgs/applications/graphics/inkscape/default.nix
+++ b/pkgs/applications/graphics/inkscape/default.nix
@@ -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; {