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

39 lines
944 B
Nix
Raw Normal View History

2016-07-15 16:59:21 +02:00
{
2017-05-16 17:56:41 +02:00
mkDerivation, lib, config, wrapGAppsHook,
2016-07-15 16:59:21 +02:00
2017-05-16 17:56:41 +02:00
extra-cmake-modules, kdoctools,
2016-07-15 16:59:21 +02:00
karchive, kconfig, kcrash, kdbusaddons, ki18n, kiconthemes, khtml, kio,
2017-04-21 16:45:54 +02:00
kservice, kpty, kwidgetsaddons, libarchive, kitemmodels,
2016-07-15 16:59:21 +02:00
# Archive tools
2017-02-27 18:01:51 +01:00
p7zip, unzipNLS, zip,
# Unfree tools
unfreeEnableUnrar ? false, unrar,
2016-07-15 16:59:21 +02:00
}:
2017-05-16 17:56:41 +02:00
mkDerivation {
name = "ark";
nativeBuildInputs = [
extra-cmake-modules kdoctools wrapGAppsHook
];
propagatedBuildInputs = [
khtml ki18n kio karchive kconfig kcrash kdbusaddons kiconthemes kservice
kpty kwidgetsaddons libarchive kitemmodels
];
preFixup =
let
PATH =
lib.makeBinPath
([ p7zip unzipNLS zip ] ++ lib.optional unfreeEnableUnrar unrar);
in ''
gappsWrapperArgs+=(--prefix PATH : "${PATH}")
'';
meta = {
license = with lib.licenses;
[ gpl2 lgpl3 ] ++ lib.optional unfreeEnableUnrar unfree;
maintainers = [ lib.maintainers.ttuegel ];
};
}