diff options
author | Eelco Dolstra <e.dolstra@tudelft.nl> | 2008-08-14T16·59+0000 |
---|---|---|
committer | Eelco Dolstra <e.dolstra@tudelft.nl> | 2008-08-14T16·59+0000 |
commit | ca07f3e37015fa85fbfc5afd868249d457e649c9 (patch) | |
tree | 9cc9408d37f9410952a0faf44b1b0f14236a9ae2 /src/libexpr/nixexpr-ast.def | |
parent | 9279174dde3e1a450e63e866d2683352dd8238d3 (diff) |
* Another experimental feature: a way to truly override attributes in
a rec. This will be very useful to allow end-user customisation of all-packages.nix, for instance globally overriding GCC or some other dependency. The // operator doesn't cut it: you could replace the "gcc" attribute, but all other attributes would continue to reference the original value due to the substitution semantics of rec. The syntax is a bit hacky but this is to allow backwards compatibility.
Diffstat (limited to 'src/libexpr/nixexpr-ast.def')
-rw-r--r-- | src/libexpr/nixexpr-ast.def | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libexpr/nixexpr-ast.def b/src/libexpr/nixexpr-ast.def index ab749b3dbe84..ba8162984156 100644 --- a/src/libexpr/nixexpr-ast.def +++ b/src/libexpr/nixexpr-ast.def @@ -93,3 +93,4 @@ AttrRHS | Expr Pos | ATerm | eTrue = makeBool(makeTrue()) eFalse = makeBool(makeFalse()) +sOverrides = toATerm("__overrides") |