diff options
author | Thomas Tuegel <ttuegel@mailbox.org> | 2017-02-27 11:01:51 -0600 |
---|---|---|
committer | Thomas Tuegel <ttuegel@mailbox.org> | 2017-02-27 11:51:33 -0600 |
commit | e02b544e4d131d0f8223a84b56b146361d4be838 (patch) | |
tree | 902e6583e0340635f17a59d556d7e0ef6602026d /pkgs/applications/kde/ark | |
parent | 1d14e19fd436081f4568d3701ed53f0b4ab19261 (diff) | |
download | nixpkgs-e02b544e4d131d0f8223a84b56b146361d4be838.tar nixpkgs-e02b544e4d131d0f8223a84b56b146361d4be838.tar.gz nixpkgs-e02b544e4d131d0f8223a84b56b146361d4be838.tar.bz2 nixpkgs-e02b544e4d131d0f8223a84b56b146361d4be838.tar.lz nixpkgs-e02b544e4d131d0f8223a84b56b146361d4be838.tar.xz nixpkgs-e02b544e4d131d0f8223a84b56b146361d4be838.tar.zst nixpkgs-e02b544e4d131d0f8223a84b56b146361d4be838.zip |
ark: Make free by default
Diffstat (limited to 'pkgs/applications/kde/ark')
-rw-r--r-- | pkgs/applications/kde/ark/default.nix | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/pkgs/applications/kde/ark/default.nix b/pkgs/applications/kde/ark/default.nix index f3adf1828de..e1e25b2acf2 100644 --- a/pkgs/applications/kde/ark/default.nix +++ b/pkgs/applications/kde/ark/default.nix @@ -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 ]; }; }; |