about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <e.dolstra@tudelft.nl>2003-11-06T15·24+0000
committerEelco Dolstra <e.dolstra@tudelft.nl>2003-11-06T15·24+0000
commit90e26d392c7ac4c2a69163f881f73916e6fba3c1 (patch)
treebd72c5df6359231f205dd50a1685a809d89d5340 /src
parentcfaea07444a0011aa7d91ce1bcc8f105b8f283fa (diff)
* Allow null in derivation bindings.
Diffstat (limited to 'src')
-rw-r--r--src/fix-ng/primops.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fix-ng/primops.cc b/src/fix-ng/primops.cc
index df5747edd48b..fb923ed46e5c 100644
--- a/src/fix-ng/primops.cc
+++ b/src/fix-ng/primops.cc
@@ -114,6 +114,8 @@ static string processBinding(EvalState & state, Expr e, NixExpr & ne)
         }
 	return s;
     }
+
+    if (ATmatch(e, "Null")) return "";
     
     throw badTerm("invalid derivation binding", e);
 }