git.iko.soy/typeable/nixpkgs
on master help sign in
unp: remove unfree unrar from the default backend list

`unrar` is unfree, meaning `unp` cannot be built by default if `unrar` is in its dependencies. A simple env NIXPKGS_ALLOW_UNFREE=1 nix-shell -p unrar will make `unp` work with .rar files.

commit7251830bf1a472acafbe70506c49f6c594e642f7 authorProfpatsch <mail@profpatsch.de> dateSat 22 Jun 2019, 13:58 (7 years ago) parent7bc2aaf
1 file changed+6−2
pkgs/tools/archivers/unp/default.nix+6−2
pkgs/tools/archivers/unp/default.nix+6−2
@@ -1,7 +1,11 @@
1−{ stdenv, lib, fetchurl, makeWrapper, perl, unrar, unzip, gzip, file, extraBackends ? [] }:
1+{ stdenv, lib, fetchurl, makeWrapper, perl
2+, unzip, gzip, file
3+# extractors which are added to unp’s PATH
4+, extraBackends ? []
5+}:
26
37let
4− runtime_bins = [ file unrar unzip gzip ] ++ extraBackends;
8+ runtime_bins = [ file unzip gzip ] ++ extraBackends;
59
610in stdenv.mkDerivation rec {
711 name = "unp-${version}";