2016-07-15 15:59:21 +01:00
|
|
|
{
|
2017-02-27 17:01:51 +00:00
|
|
|
kdeApp, lib, config, kdeWrapper,
|
2016-07-15 15:59:21 +01:00
|
|
|
|
2017-02-26 12:49:15 +00:00
|
|
|
extra-cmake-modules, kdoctools, makeWrapper,
|
2016-04-21 17:00:51 +01:00
|
|
|
|
2016-07-15 15:59:21 +01:00
|
|
|
karchive, kconfig, kcrash, kdbusaddons, ki18n, kiconthemes, khtml, kio,
|
|
|
|
kservice, kpty, kwidgetsaddons, libarchive,
|
|
|
|
|
|
|
|
# Archive tools
|
2017-02-27 17:01:51 +00:00
|
|
|
p7zip, unzipNLS, zip,
|
|
|
|
|
|
|
|
# Unfree tools
|
|
|
|
unfreeEnableUnrar ? false, unrar,
|
2016-07-15 15:59:21 +01:00
|
|
|
}:
|
2016-04-21 17:00:51 +01:00
|
|
|
|
2016-07-30 23:25:46 +01:00
|
|
|
let
|
|
|
|
unwrapped =
|
|
|
|
kdeApp {
|
|
|
|
name = "ark";
|
|
|
|
nativeBuildInputs = [
|
2017-02-26 12:49:15 +00:00
|
|
|
extra-cmake-modules kdoctools makeWrapper
|
2016-07-15 15:59:21 +01:00
|
|
|
];
|
2016-07-30 23:25:46 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
khtml ki18n kio karchive kconfig kcrash kdbusaddons kiconthemes kservice
|
|
|
|
kpty kwidgetsaddons libarchive
|
|
|
|
];
|
|
|
|
postInstall =
|
|
|
|
let
|
2017-02-27 17:01:51 +00:00
|
|
|
PATH =
|
|
|
|
lib.makeBinPath
|
|
|
|
([ p7zip unzipNLS zip ] ++ lib.optional unfreeEnableUnrar unrar);
|
2016-07-30 23:25:46 +01:00
|
|
|
in ''
|
|
|
|
wrapProgram "$out/bin/ark" \
|
|
|
|
--prefix PATH : "${PATH}"
|
|
|
|
'';
|
|
|
|
meta = {
|
2017-02-27 17:01:51 +00:00
|
|
|
license = with lib.licenses;
|
|
|
|
[ gpl2 lgpl3 ] ++ lib.optional unfreeEnableUnrar unfree;
|
2016-07-30 23:25:46 +01:00
|
|
|
maintainers = [ lib.maintainers.ttuegel ];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
in
|
2017-01-02 23:33:15 +00:00
|
|
|
kdeWrapper
|
2016-07-30 23:25:46 +01:00
|
|
|
{
|
2017-01-02 23:33:15 +00:00
|
|
|
inherit unwrapped;
|
2016-07-30 23:25:46 +01:00
|
|
|
targets = [ "bin/ark" ];
|
2016-04-21 17:00:51 +01:00
|
|
|
}
|