From 7251830bf1a472acafbe70506c49f6c594e642f7 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Sat, 22 Jun 2019 13:58:43 +0200 Subject: [PATCH] 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. --- pkgs/tools/archivers/unp/default.nix | 8 ++++++-- 1 file 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}";