2016-07-15 16:59:21 +02:00
|
|
|
{
|
2019-07-05 17:41:41 +02:00
|
|
|
mkDerivation, lib, config,
|
2016-07-15 16:59:21 +02:00
|
|
|
|
2017-05-16 17:56:41 +02:00
|
|
|
extra-cmake-modules, kdoctools,
|
2016-04-21 18:00:51 +02:00
|
|
|
|
2019-07-05 17:41:41 +02:00
|
|
|
breeze-icons, karchive, kconfig, kcrash, kdbusaddons, ki18n,
|
|
|
|
kiconthemes, kitemmodels, khtml, kio, kparts, kpty, kservice, kwidgetsaddons,
|
|
|
|
|
|
|
|
libarchive, libzip,
|
2016-07-15 16:59:21 +02:00
|
|
|
|
|
|
|
# Archive tools
|
2020-06-11 15:19:33 +02:00
|
|
|
p7zip, lrzip,
|
2017-02-27 18:01:51 +01:00
|
|
|
|
|
|
|
# Unfree tools
|
|
|
|
unfreeEnableUnrar ? false, unrar,
|
2016-07-15 16:59:21 +02:00
|
|
|
}:
|
2016-04-21 18:00:51 +02:00
|
|
|
|
2019-07-05 17:41:41 +02:00
|
|
|
let
|
2020-06-11 15:19:33 +02:00
|
|
|
extraTools = [ p7zip lrzip ] ++ lib.optional unfreeEnableUnrar unrar;
|
2019-07-05 17:41:41 +02:00
|
|
|
in
|
|
|
|
|
2017-05-16 17:56:41 +02:00
|
|
|
mkDerivation {
|
2020-12-25 00:05:07 +01:00
|
|
|
pname = "ark";
|
2017-05-16 17:56:41 +02:00
|
|
|
meta = {
|
2019-12-07 22:32:26 +01:00
|
|
|
description = "Graphical file compression/decompression utility";
|
2017-05-16 17:56:41 +02:00
|
|
|
license = with lib.licenses;
|
|
|
|
[ gpl2 lgpl3 ] ++ lib.optional unfreeEnableUnrar unfree;
|
|
|
|
maintainers = [ lib.maintainers.ttuegel ];
|
|
|
|
};
|
2019-07-05 17:41:41 +02:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
|
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
|
|
|
buildInputs = [ libarchive libzip ] ++ extraTools;
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
breeze-icons karchive kconfig kcrash kdbusaddons khtml ki18n kiconthemes kio
|
|
|
|
kitemmodels kparts kpty kservice kwidgetsaddons
|
|
|
|
];
|
|
|
|
|
|
|
|
qtWrapperArgs = [ "--prefix" "PATH" ":" (lib.makeBinPath extraTools) ];
|
2016-04-21 18:00:51 +02:00
|
|
|
}
|