about summary refs log tree commit diff
path: root/pkgs/desktops
diff options
context:
space:
mode:
authorrewine2024-08-30 21:06:47 +0800
committerrewine2024-09-04 10:16:54 +0800
commit8166a4e0caf43ea1c3bdfc16b4ac0f03525f939b (patch)
tree270a1b6f16d8c305584fb97cd63894f14f056377 /pkgs/desktops
parent2d0cdadc74ad69ca33d2ddd99a6ee72d2b397bf4 (diff)
deepin.dtkgui: fix svg renderer
Diffstat (limited to 'pkgs/desktops')
-rw-r--r--pkgs/desktops/deepin/library/dtkgui/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/desktops/deepin/library/dtkgui/default.nix b/pkgs/desktops/deepin/library/dtkgui/default.nix
index 1b8c91265366..449a9d4156a1 100644
--- a/pkgs/desktops/deepin/library/dtkgui/default.nix
+++ b/pkgs/desktops/deepin/library/dtkgui/default.nix
@@ -27,6 +27,11 @@ stdenv.mkDerivation rec {
     ./fix-pri-path.patch
   ];
 
+  postPatch = ''
+    substituteInPlace src/util/dsvgrenderer.cpp \
+      --replace-fail 'QLibrary("rsvg-2", "2")' 'QLibrary("${lib.getLib librsvg}/lib/librsvg-2.so")'
+  '';
+
   nativeBuildInputs = [
     cmake
     doxygen