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

38 lines
979 B
Nix
Raw Normal View History

2016-07-15 17:59:21 +03:00
{
2017-05-17 22:26:11 +03:00
mkDerivation, lib, config, makeWrapper,
2016-07-15 17:59:21 +03:00
2017-05-16 18:56:41 +03:00
extra-cmake-modules, kdoctools,
karchive, kconfig, kcrash, kdbusaddons, ki18n, kiconthemes, kitemmodels,
khtml, kio, kparts, kpty, kservice, kwidgetsaddons, libarchive,
2016-07-15 17:59:21 +03:00
# Archive tools
p7zip, unzip, zip,
2017-02-27 20:01:51 +03:00
# Unfree tools
unfreeEnableUnrar ? false, unrar,
2016-07-15 17:59:21 +03:00
}:
2017-05-16 18:56:41 +03:00
mkDerivation {
name = "ark";
2017-05-17 22:26:11 +03:00
nativeBuildInputs = [ extra-cmake-modules kdoctools makeWrapper ];
2017-05-16 18:56:41 +03:00
propagatedBuildInputs = [
karchive kconfig kcrash kdbusaddons khtml ki18n kiconthemes kio kitemmodels
kparts kpty kservice kwidgetsaddons libarchive
2017-05-16 18:56:41 +03:00
];
outputs = [ "out" "dev" ];
2017-05-17 22:26:11 +03:00
postFixup =
2017-05-16 18:56:41 +03:00
let
PATH =
lib.makeBinPath
([ p7zip unzip zip ] ++ lib.optional unfreeEnableUnrar unrar);
2017-05-16 18:56:41 +03:00
in ''
2017-05-17 22:26:11 +03:00
wrapProgram "$out/bin/ark" --prefix PATH: "${PATH}"
2017-05-16 18:56:41 +03:00
'';
meta = {
license = with lib.licenses;
[ gpl2 lgpl3 ] ++ lib.optional unfreeEnableUnrar unfree;
maintainers = [ lib.maintainers.ttuegel ];
};
}