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