about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--src/libexpr/primops.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/libexpr/primops.cc b/src/libexpr/primops.cc
index c04d41bf4ddf..93a699b4170b 100644
--- a/src/libexpr/primops.cc
+++ b/src/libexpr/primops.cc
@@ -368,9 +368,7 @@ static Expr primDerivationStrict(EvalState & state, const ATermVector & args)
         if (outputHashRecursive) outputHashAlgo = "r:" + outputHashAlgo;
     }
 
-    /* Check the derivation name.  It shouldn't contain whitespace,
-       but we are conservative here: we check whether only
-       alphanumerics and some other characters appear. */
+    /* Check whether the derivation name is valid. */
     checkStoreName(drvName);
     if (isDerivation(drvName))
         throw EvalError(format("derivation names are not allowed to end in `%1%'")