forked from mirrors/nixpkgs
lib.licenses.proprietary is definitely unfree
This commit is contained in:
parent
111a6c23f8
commit
9ac6c53cbf
|
@ -41,7 +41,7 @@ let
|
||||||
# Add a utility function to produce derivations that use this
|
# Add a utility function to produce derivations that use this
|
||||||
# stdenv and its shell.
|
# stdenv and its shell.
|
||||||
mkDerivation = attrs:
|
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"
|
throw "package ‘${attrs.name}’ has an unfree license, refusing to evaluate"
|
||||||
else
|
else
|
||||||
(derivation (
|
(derivation (
|
||||||
|
|
Loading…
Reference in a new issue