Merge remote-tracking branch 'upstream/master' into stdenv-updates

This commit is contained in:
Rickard Nilsson
2013-01-20 16:53:21 +01:00
41 changed files with 537 additions and 127 deletions
+2 -2
View File
@@ -10,7 +10,7 @@ let
lib = import ../../lib;
disallowUnfree = builtins.getEnv "HYDRA_DISALLOW_UNFREE" == "1";
allowUnfree = config.allowUnfree or true && builtins.getEnv "HYDRA_DISALLOW_UNFREE" != "1";
stdenvGenerator = setupScript: rec {
@@ -41,7 +41,7 @@ let
# Add a utility function to produce derivations that use this
# stdenv and its shell.
mkDerivation = attrs:
if disallowUnfree && attrs.meta.license or "" == "unfree" then
if !allowUnfree && attrs.meta.license or "" == "unfree" then
throw "package ${attrs.name} has an unfree license, refusing to evaluate"
else
(derivation (