lol
1{ mkDerivation, lib, extra-cmake-modules, kdoctools
2, breeze-icons, karchive, kconfig, kcrash, kdbusaddons, ki18n
3, kiconthemes, kitemmodels, khtml, kio, kparts, kpty, kservice, kwidgetsaddons
4, libarchive, libzip
5# Archive tools
6, p7zip, lrzip, unar
7# Unfree tools
8, unfreeEnableUnrar ? false, unrar
9}:
10
11let
12 extraTools = [ p7zip lrzip unar ] ++ lib.optional unfreeEnableUnrar unrar;
13in
14
15mkDerivation {
16 pname = "ark";
17
18 outputs = [ "out" "dev" ];
19
20 nativeBuildInputs = [ extra-cmake-modules kdoctools ];
21
22 buildInputs = [ libarchive libzip ] ++ extraTools;
23
24 propagatedBuildInputs = [
25 breeze-icons karchive kconfig kcrash kdbusaddons khtml ki18n kiconthemes kio
26 kitemmodels kparts kpty kservice kwidgetsaddons
27 ];
28
29 qtWrapperArgs = [ "--prefix" "PATH" ":" (lib.makeBinPath extraTools) ];
30
31 meta = with lib; {
32 homepage = "https://apps.kde.org/ark/";
33 description = "Graphical file compression/decompression utility";
34 license = with licenses; [ gpl2 lgpl3 ] ++ optional unfreeEnableUnrar unfree;
35 maintainers = [ maintainers.ttuegel ];
36 };
37}