nixpkgs/pkgs/applications/kde/ark/default.nix

44 lines
941 B
Nix
Raw Normal View History

2016-07-15 16:59:21 +02:00
{
2016-07-31 00:25:46 +02:00
kdeApp, lib, kdeWrapper,
2016-07-15 16:59:21 +02:00
2016-07-31 00:25:46 +02:00
ecm, kdoctools, makeWrapper,
2016-07-15 16:59:21 +02:00
karchive, kconfig, kcrash, kdbusaddons, ki18n, kiconthemes, khtml, kio,
kservice, kpty, kwidgetsaddons, libarchive,
# Archive tools
p7zip, unrar, unzipNLS, zip
}:
2016-07-31 00:25:46 +02:00
let
unwrapped =
kdeApp {
name = "ark";
nativeBuildInputs = [
ecm kdoctools makeWrapper
2016-07-15 16:59:21 +02:00
];
2016-07-31 00:25:46 +02:00
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
2016-07-31 00:25:46 +02:00
{
inherit unwrapped;
2016-07-31 00:25:46 +02:00
targets = [ "bin/ark" ];
}