about summary refs log tree commit diff
path: root/pkgs/applications
diff options
context:
space:
mode:
authorThomas Gerbet <thomas@gerbet.me>2024-02-25 12:06:03 +0100
committerGitHub <noreply@github.com>2024-02-25 12:06:03 +0100
commit3bf7b3d10e736f8a2bf864b20a663d40e7767b4f (patch)
tree6b63c1be2dc1c5c0267ac0e09336cf6cbf1b312d /pkgs/applications
parent629aee88ca44ea41810669ded71018ab1777da6d (diff)
parent67d1d801b048c7200942e99606eb844e46d17329 (diff)
Merge pull request #286546 from Sigmanificient/kcachegrind-fix
kcachegrind: fix graphviz missing at runtime
Diffstat (limited to 'pkgs/applications')
-rw-r--r--pkgs/applications/kde/kcachegrind.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/applications/kde/kcachegrind.nix b/pkgs/applications/kde/kcachegrind.nix
index 61ff38f316848..3648c18934492 100644
--- a/pkgs/applications/kde/kcachegrind.nix
+++ b/pkgs/applications/kde/kcachegrind.nix
@@ -2,7 +2,7 @@
   mkDerivation, lib,
   extra-cmake-modules, kdoctools,
   karchive, ki18n, kio, perl, python3, php, qttools,
-  kdbusaddons
+  kdbusaddons, makeBinaryWrapper, graphviz
 }:
 
 mkDerivation {
@@ -13,6 +13,10 @@ mkDerivation {
     license = with lib.licenses; [ gpl2 ];
     maintainers = with lib.maintainers; [ orivej ];
   };
-  nativeBuildInputs = [ extra-cmake-modules kdoctools ];
+  nativeBuildInputs = [ extra-cmake-modules kdoctools makeBinaryWrapper ];
   buildInputs = [ karchive ki18n kio perl python3 php qttools kdbusaddons ];
+  postInstall = ''
+    wrapProgram $out/bin/kcachegrind \
+      --suffix PATH : "${lib.makeBinPath [ graphviz ]}"
+  '';
 }