2021-03-06 05:14:34 +01:00
|
|
|
{ mkDerivation, lib, config
|
|
|
|
, extra-cmake-modules, kdoctools
|
|
|
|
, breeze-icons, karchive, kconfig, kcrash, kdbusaddons, ki18n
|
|
|
|
, kiconthemes, kitemmodels, khtml, kio, kparts, kpty, kservice, kwidgetsaddons
|
|
|
|
, libarchive, libzip
|
|
|
|
# Archive tools
|
|
|
|
, p7zip, lrzip
|
|
|
|
# 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";
|
2019-07-05 17:41:41 +02:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
2021-03-06 05:14:34 +01:00
|
|
|
|
2019-07-05 17:41:41 +02:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
2021-03-06 05:14:34 +01:00
|
|
|
|
2019-07-05 17:41:41 +02:00
|
|
|
buildInputs = [ libarchive libzip ] ++ extraTools;
|
2021-03-06 05:14:34 +01:00
|
|
|
|
2019-07-05 17:41:41 +02:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
breeze-icons karchive kconfig kcrash kdbusaddons khtml ki18n kiconthemes kio
|
|
|
|
kitemmodels kparts kpty kservice kwidgetsaddons
|
|
|
|
];
|
|
|
|
|
|
|
|
qtWrapperArgs = [ "--prefix" "PATH" ":" (lib.makeBinPath extraTools) ];
|
2021-03-06 05:14:34 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-09-18 11:48:23 +02:00
|
|
|
homepage = "https://apps.kde.org/ark/";
|
2021-03-06 05:14:34 +01:00
|
|
|
description = "Graphical file compression/decompression utility";
|
|
|
|
license = with licenses; [ gpl2 lgpl3 ] ++ optional unfreeEnableUnrar unfree;
|
|
|
|
maintainers = [ maintainers.ttuegel ];
|
|
|
|
};
|
2016-04-21 18:00:51 +02:00
|
|
|
}
|