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.
This commit is contained in:
Profpatsch 2019-06-22 13:58:43 +02:00
parent 7bc2aaff0e
commit 7251830bf1

View File

@ -1,7 +1,11 @@
{ stdenv, lib, fetchurl, makeWrapper, perl, unrar, unzip, gzip, file, extraBackends ? [] }:
{ stdenv, lib, fetchurl, makeWrapper, perl
, unzip, gzip, file
# extractors which are added to unps PATH
, extraBackends ? []
}:
let
runtime_bins = [ file unrar unzip gzip ] ++ extraBackends;
runtime_bins = [ file unzip gzip ] ++ extraBackends;
in stdenv.mkDerivation rec {
name = "unp-${version}";