ark: Make free by default

This commit is contained in:
Thomas Tuegel 2017-02-27 11:01:51 -06:00
parent 1d14e19fd4
commit e02b544e4d
No known key found for this signature in database
GPG Key ID: 22CBF5249D4B4D59

View File

@ -1,5 +1,5 @@
{
kdeApp, lib, kdeWrapper,
kdeApp, lib, config, kdeWrapper,
extra-cmake-modules, kdoctools, makeWrapper,
@ -7,7 +7,10 @@
kservice, kpty, kwidgetsaddons, libarchive,
# Archive tools
p7zip, unrar, unzipNLS, zip
p7zip, unzipNLS, zip,
# Unfree tools
unfreeEnableUnrar ? false, unrar,
}:
let
@ -23,15 +26,16 @@ let
];
postInstall =
let
PATH = lib.makeBinPath [
p7zip unrar unzipNLS zip
];
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 ];
license = with lib.licenses;
[ gpl2 lgpl3 ] ++ lib.optional unfreeEnableUnrar unfree;
maintainers = [ lib.maintainers.ttuegel ];
};
};