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, mkDerivation, lib,
extra-cmake-modules, kdoctools, extra-cmake-modules, kdoctools,
karchive, ki18n, kio, perl, python3, php, qttools, karchive, ki18n, kio, perl, python3, php, qttools,
kdbusaddons kdbusaddons, makeBinaryWrapper, graphviz
}: }:
mkDerivation { mkDerivation {
@ -13,6 +13,10 @@ mkDerivation {
license = with lib.licenses; [ gpl2 ]; license = with lib.licenses; [ gpl2 ];
maintainers = with lib.maintainers; [ orivej ]; 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 ]; buildInputs = [ karchive ki18n kio perl python3 php qttools kdbusaddons ];
postInstall = ''
wrapProgram $out/bin/kcachegrind \
--suffix PATH : "${lib.makeBinPath [ graphviz ]}"
'';
} }