ark: use kdeWrapper

This commit is contained in:
Thomas Tuegel 2016-07-30 17:25:46 -05:00
parent ab58794838
commit 425f9be1c8

View file

@ -1,7 +1,7 @@
{
kdeApp, lib,
kdeApp, lib, kdeWrapper,
ecm, kdoctools, makeQtWrapper,
ecm, kdoctools, makeWrapper,
karchive, kconfig, kcrash, kdbusaddons, ki18n, kiconthemes, khtml, kio,
kservice, kpty, kwidgetsaddons, libarchive,
@ -10,26 +10,33 @@
p7zip, unrar, unzipNLS, zip
}:
kdeApp {
name = "ark";
nativeBuildInputs = [
ecm kdoctools makeQtWrapper
];
propagatedBuildInputs = [
khtml ki18n kio karchive kconfig kcrash kdbusaddons kiconthemes kservice
kpty kwidgetsaddons libarchive
];
postInstall =
let
PATH = lib.makeBinPath [
p7zip unrar unzipNLS zip
let
unwrapped =
kdeApp {
name = "ark";
nativeBuildInputs = [
ecm kdoctools makeWrapper
];
in ''
wrapQtProgram "$out/bin/ark" \
--prefix PATH : "${PATH}"
'';
meta = {
license = with lib.licenses; [ gpl2 lgpl3 ];
maintainers = [ lib.maintainers.ttuegel ];
};
propagatedBuildInputs = [
khtml ki18n kio karchive kconfig kcrash kdbusaddons kiconthemes kservice
kpty kwidgetsaddons libarchive
];
postInstall =
let
PATH = lib.makeBinPath [
p7zip unrar unzipNLS zip
];
in ''
wrapProgram "$out/bin/ark" \
--prefix PATH : "${PATH}"
'';
meta = {
license = with lib.licenses; [ gpl2 lgpl3 ];
maintainers = [ lib.maintainers.ttuegel ];
};
};
in
kdeWrapper unwrapped
{
targets = [ "bin/ark" ];
}