Merge pull request #286546 from Sigmanificient/kcachegrind-fix

kcachegrind: fix graphviz missing at runtime
This commit is contained in:
Thomas Gerbet 2024-02-25 12:06:03 +01:00 committed by GitHub
commit 3bf7b3d10e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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