* 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.
This commit is contained in:
Eelco Dolstra 2008-08-14 16:59:37 +00:00
parent 9279174dde
commit ca07f3e370
2 changed files with 25 additions and 2 deletions

View file

@ -93,3 +93,4 @@ AttrRHS | Expr Pos | ATerm |
eTrue = makeBool(makeTrue())
eFalse = makeBool(makeFalse())
sOverrides = toATerm("__overrides")