git.iko.soy/typeable/nixpkgs
on master help sign in
xarchiver: replace unfree rar handler

Since version 0.5.4.11, Xarchiver supports using either unrar or unar to unpack .rar files. The former being released under an unfree license, using the latter by default is preferable. This avoids indirectly guarding the xarchiver package under `nixpkgs.config.allowUnfree` due to the dependency on unrar. Users who would like to use the unfree implementation may do so by adding the unrar package to the environment from which they are calling xarchiver.

commitf8d0efbf3753673bd51739bbf3c369b94e41db36 authorpacien <pacien.trangirard@pacien.net> dateFri 16 Jul 2021, 04:43 (5 years ago) parentd3ebf3b
1 file changed+2−2
pkgs/tools/archivers/xarchiver/default.nix+2−2
pkgs/tools/archivers/xarchiver/default.nix+2−2
@@ -1,5 +1,5 @@
11{ lib, stdenv, fetchFromGitHub, gtk3, pkg-config, intltool, libxslt, makeWrapper,
2− coreutils, zip, unzip, p7zip, unrar, gnutar, bzip2, gzip, lhasa, wrapGAppsHook }:
2+ coreutils, zip, unzip, p7zip, unar, gnutar, bzip2, gzip, lhasa, wrapGAppsHook }:
33
44stdenv.mkDerivation rec {
55 version = "0.5.4.17";
@@ -17,7 +17,7 @@ stdenv.mkDerivation rec {
1717
1818 postFixup = ''
1919 wrapProgram $out/bin/xarchiver \
20− --prefix PATH : ${lib.makeBinPath [ zip unzip p7zip unrar gnutar bzip2 gzip lhasa coreutils ]}
20+ --prefix PATH : ${lib.makeBinPath [ zip unzip p7zip unar gnutar bzip2 gzip lhasa coreutils ]}
2121 '';
2222
2323 meta = {