With !allowUnfree, reject unfree-redistributable packages as well

This commit is contained in:
Eelco Dolstra 2013-01-24 18:27:22 +01:00
parent 8dba5cd411
commit d9d9723ca7

View file

@ -41,7 +41,7 @@ let
# Add a utility function to produce derivations that use this
# stdenv and its shell.
mkDerivation = attrs:
if !allowUnfree && attrs.meta.license or "" == "unfree" then
if !allowUnfree && (let l = attrs.meta.license or ""; in l == "unfree" || l == "unfree-redistributable") then
throw "package ${attrs.name} has an unfree license, refusing to evaluate"
else
(derivation (