kcalc: use kdeWrapper

This commit is contained in:
Thomas Tuegel 2016-07-30 17:31:49 -05:00
parent f66b4ca61d
commit 6db7ef73b6

View File

@ -1,20 +1,21 @@
{
kdeApp, lib, makeQtWrapper, kdoctools,
ecm, kconfig, kconfigwidgets, kguiaddons, kinit,
knotifications, gmp
kdeApp, lib, kdeWrapper,
ecm, kdoctools,
kconfig, kconfigwidgets, kguiaddons, kinit, knotifications, gmp
}:
kdeApp {
name = "kcalc";
meta = {
license = with lib.licenses; [ gpl2 ];
maintainers = [ lib.maintainers.fridh ];
};
nativeBuildInputs = [ ecm kdoctools makeQtWrapper ];
propagatedBuildInputs = [
gmp kconfig kconfigwidgets kguiaddons kinit knotifications
];
postInstall = ''
wrapQtProgram "$out/bin/kcalc"
'';
}
let
unwrapped =
kdeApp {
name = "kcalc";
meta = {
license = with lib.licenses; [ gpl2 ];
maintainers = [ lib.maintainers.fridh ];
};
nativeBuildInputs = [ ecm kdoctools ];
propagatedBuildInputs = [
gmp kconfig kconfigwidgets kguiaddons kinit knotifications
];
};
in
kdeWrapper unwrapped { targets = [ "bin/kcalc" ]; }