1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-27 12:41:15 +02:00

Add functors (callable attribute sets).

With this, attribute sets with a `__functor` attribute can be applied
just like normal functions. This can be used to attach arbitrary
metadata to a function without callers needing to treat it specially.
This commit is contained in:
Shea Levy 2014-10-15 22:04:48 -04:00
parent 8cfe939b0f
commit 997defa166
4 changed files with 15 additions and 1 deletions

View file

@ -126,7 +126,7 @@ public:
const Symbol sWith, sOutPath, sDrvPath, sType, sMeta, sName, sValue,
sSystem, sOverrides, sOutputs, sOutputName, sIgnoreNulls,
sFile, sLine, sColumn;
sFile, sLine, sColumn, sFunctor;
Symbol sDerivationNix;
/* If set, force copying files to the Nix store even if they