3
0
Fork 0
forked from mirrors/nixpkgs

lib.licenses.proprietary is definitely unfree

This commit is contained in:
Shea Levy 2013-01-27 18:36:54 -05:00
parent 111a6c23f8
commit 9ac6c53cbf

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 && (let l = attrs.meta.license or ""; in l == "unfree" || l == "unfree-redistributable") then
if !allowUnfree && (let l = attrs.meta.license or ""; in l == "unfree" || l == "unfree-redistributable" || l == lib.licenses.proprietary) then
throw "package ${attrs.name} has an unfree license, refusing to evaluate"
else
(derivation (