nixpkgs/pkgs/applications/kde/ark/default.nix

41 lines
1.0 KiB
Nix
Raw Normal View History

2016-07-15 15:59:21 +01:00
{
mkDerivation, lib, config,
2016-07-15 15:59:21 +01:00
2017-05-16 16:56:41 +01:00
extra-cmake-modules, kdoctools,
breeze-icons, karchive, kconfig, kcrash, kdbusaddons, ki18n,
kiconthemes, kitemmodels, khtml, kio, kparts, kpty, kservice, kwidgetsaddons,
libarchive, libzip,
2016-07-15 15:59:21 +01:00
# Archive tools
2020-05-01 21:03:36 +01:00
lrzip,
2017-02-27 17:01:51 +00:00
# Unfree tools
unfreeEnableUnrar ? false, unrar,
2016-07-15 15:59:21 +01:00
}:
let
2020-05-01 21:03:36 +01:00
extraTools = [ lrzip ] ++ lib.optional unfreeEnableUnrar unrar;
in
2017-05-16 16:56:41 +01:00
mkDerivation {
name = "ark";
meta = {
2019-12-07 21:32:26 +00:00
description = "Graphical file compression/decompression utility";
2017-05-16 16:56:41 +01:00
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) ];
}