summary refs log tree commit diff
path: root/pkgs/tools/archivers
diff options
context:
space:
mode:
authorProfpatsch <mail@profpatsch.de>2019-06-22 13:58:43 +0200
committerProfpatsch <mail@profpatsch.de>2019-06-24 16:18:23 +0200
commit7251830bf1a472acafbe70506c49f6c594e642f7 (patch)
treedba179e11404edc1b9f09eed0bfad52d9f1ec28c /pkgs/tools/archivers
parent7bc2aaff0ed863308ed91b72226f8a2f49537d96 (diff)
downloadnixpkgs-7251830bf1a472acafbe70506c49f6c594e642f7.tar
nixpkgs-7251830bf1a472acafbe70506c49f6c594e642f7.tar.gz
nixpkgs-7251830bf1a472acafbe70506c49f6c594e642f7.tar.bz2
nixpkgs-7251830bf1a472acafbe70506c49f6c594e642f7.tar.lz
nixpkgs-7251830bf1a472acafbe70506c49f6c594e642f7.tar.xz
nixpkgs-7251830bf1a472acafbe70506c49f6c594e642f7.tar.zst
nixpkgs-7251830bf1a472acafbe70506c49f6c594e642f7.zip
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.
Diffstat (limited to 'pkgs/tools/archivers')
-rw-r--r--pkgs/tools/archivers/unp/default.nix8
1 files changed, 6 insertions, 2 deletions
diff --git a/pkgs/tools/archivers/unp/default.nix b/pkgs/tools/archivers/unp/default.nix
index 106f75ab376..6880a49b4db 100644
--- a/pkgs/tools/archivers/unp/default.nix
+++ b/pkgs/tools/archivers/unp/default.nix
@@ -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 unp’s PATH
+, extraBackends ? []
+}:
 
 let
-  runtime_bins =  [ file unrar unzip gzip ] ++ extraBackends;
+  runtime_bins =  [ file unzip gzip ] ++ extraBackends;
 
 in stdenv.mkDerivation rec {
   name = "unp-${version}";