mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
ff1a94e523
The nixpkgs-unstable channel's programs.sqlite was used to identify packages producing exactly one binary, and these automatically added to their package definitions wherever possible.
38 lines
1.1 KiB
Nix
38 lines
1.1 KiB
Nix
{ mkDerivation, lib, 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, unar
|
|
# Unfree tools
|
|
, unfreeEnableUnrar ? false, unrar
|
|
}:
|
|
|
|
let
|
|
extraTools = [ p7zip lrzip unar ] ++ lib.optional unfreeEnableUnrar unrar;
|
|
in
|
|
|
|
mkDerivation {
|
|
pname = "ark";
|
|
|
|
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) ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://apps.kde.org/ark/";
|
|
description = "Graphical file compression/decompression utility";
|
|
mainProgram = "ark";
|
|
license = with licenses; [ gpl2 lgpl3 ] ++ optional unfreeEnableUnrar unfree;
|
|
maintainers = [ maintainers.ttuegel ];
|
|
};
|
|
}
|