diff options
Diffstat (limited to 'infra/libkookie/nixpkgs/pkgs/applications/kde/ark/default.nix')
-rw-r--r-- | infra/libkookie/nixpkgs/pkgs/applications/kde/ark/default.nix | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/infra/libkookie/nixpkgs/pkgs/applications/kde/ark/default.nix b/infra/libkookie/nixpkgs/pkgs/applications/kde/ark/default.nix new file mode 100644 index 000000000000..76cc423f5460 --- /dev/null +++ b/infra/libkookie/nixpkgs/pkgs/applications/kde/ark/default.nix @@ -0,0 +1,40 @@ +{ + 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, +}: + +let + extraTools = [ p7zip lrzip ] ++ lib.optional unfreeEnableUnrar unrar; +in + +mkDerivation { + name = "ark"; + meta = { + description = "Graphical file compression/decompression utility"; + license = with lib.licenses; + [ gpl2 lgpl3 ] ++ lib.optional unfreeEnableUnrar unfree; + maintainers = [ lib.maintainers.ttuegel ]; + }; + + 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) ]; +} |