mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 22:20:51 +00:00
40 lines
979 B
Nix
40 lines
979 B
Nix
{
|
|
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 = {
|
|
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) ];
|
|
}
|