kcachegrind: fix graphviz missing at runtime

This commit is contained in:
Sigmanificient 2024-02-05 19:29:39 +01:00
parent 831bdd7e90
commit 67d1d801b0

View File

@ -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 ]}"
'';
}