2022-10-21 18:38:19 +00:00
|
|
|
{ mkDerivation, lib, extra-cmake-modules, kdoctools
|
2021-03-09 03:18:52 +00:00
|
|
|
, breeze-icons, karchive, kconfig, kcrash, kdbusaddons, ki18n
|
|
|
|
, kiconthemes, kitemmodels, khtml, kio, kparts, kpty, kservice, kwidgetsaddons
|
|
|
|
, libarchive, libzip
|
|
|
|
# Archive tools
|
2023-07-15 17:15:38 +00:00
|
|
|
, p7zip, lrzip, unar
|
2021-03-09 03:18:52 +00:00
|
|
|
# Unfree tools
|
|
|
|
, unfreeEnableUnrar ? false, unrar
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
2023-07-15 17:15:38 +00:00
|
|
|
extraTools = [ p7zip lrzip unar ] ++ lib.optional unfreeEnableUnrar unrar;
|
2020-04-24 23:36:52 +00:00
|
|
|
in
|
|
|
|
|
|
|
|
mkDerivation {
|
2021-01-05 17:05:55 +00:00
|
|
|
pname = "ark";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" ];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools ];
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [ libarchive libzip ] ++ extraTools;
|
2021-03-09 03:18:52 +00:00
|
|
|
|
2020-04-24 23:36:52 +00: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-09 03:18:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2021-09-28 08:13:01 +00:00
|
|
|
homepage = "https://apps.kde.org/ark/";
|
2021-03-09 03:18:52 +00:00
|
|
|
description = "Graphical file compression/decompression utility";
|
|
|
|
license = with licenses; [ gpl2 lgpl3 ] ++ optional unfreeEnableUnrar unfree;
|
|
|
|
maintainers = [ maintainers.ttuegel ];
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|