mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-18 11:44:07 +00:00
37 lines
941 B
Nix
37 lines
941 B
Nix
{
|
|
mkDerivation, lib, config, makeWrapper,
|
|
|
|
extra-cmake-modules, kdoctools,
|
|
|
|
karchive, kconfig, kcrash, kdbusaddons, ki18n, kiconthemes, khtml, kio,
|
|
kservice, kpty, kwidgetsaddons, libarchive, kitemmodels,
|
|
|
|
# Archive tools
|
|
p7zip, unzipNLS, zip,
|
|
|
|
# Unfree tools
|
|
unfreeEnableUnrar ? false, unrar,
|
|
}:
|
|
|
|
mkDerivation {
|
|
name = "ark";
|
|
nativeBuildInputs = [ extra-cmake-modules kdoctools makeWrapper ];
|
|
propagatedBuildInputs = [
|
|
khtml ki18n kio karchive kconfig kcrash kdbusaddons kiconthemes kservice
|
|
kpty kwidgetsaddons libarchive kitemmodels
|
|
];
|
|
postFixup =
|
|
let
|
|
PATH =
|
|
lib.makeBinPath
|
|
([ p7zip unzipNLS zip ] ++ lib.optional unfreeEnableUnrar unrar);
|
|
in ''
|
|
wrapProgram "$out/bin/ark" --prefix PATH: "${PATH}"
|
|
'';
|
|
meta = {
|
|
license = with lib.licenses;
|
|
[ gpl2 lgpl3 ] ++ lib.optional unfreeEnableUnrar unfree;
|
|
maintainers = [ lib.maintainers.ttuegel ];
|
|
};
|
|
}
|