about summary refs log tree commit diff
path: root/src/libexpr/eval.hh
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2012-11-27T14·01+0100
committerEelco Dolstra <eelco.dolstra@logicblox.com>2012-11-27T14·01+0100
commit6c98e6a5dec2bcbc25ddeb2c279aa4a0b274bd6a (patch)
tree2ef5df17cd5fc359c27f96adb3279deb791591a9 /src/libexpr/eval.hh
parent8b8ee53bc73769bb25d967ba259dabc9b23e2e6f (diff)
Optionally ignore null-valued derivation attributes
This allows adding attributes like

  attr = if stdenv.system == "bla" then something else null;

without changing the resulting derivation on non-<bla> platforms.

We once considered adding a special "ignore" value for this purpose,
but using null seems more elegant.
Diffstat (limited to 'src/libexpr/eval.hh')
-rw-r--r--src/libexpr/eval.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libexpr/eval.hh b/src/libexpr/eval.hh
index 432a0bad1c6c..1d3baaab8f10 100644
--- a/src/libexpr/eval.hh
+++ b/src/libexpr/eval.hh
@@ -93,7 +93,7 @@ public:
     SymbolTable symbols;
 
     const Symbol sWith, sOutPath, sDrvPath, sType, sMeta, sName,
-        sSystem, sOverrides, sOutputName;
+        sSystem, sOverrides, sOutputName, sIgnoreNulls;
 
     /* If set, force copying files to the Nix store even if they
        already exist there. */