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:
parent
8cfe939b0f
commit
997defa166
4 changed files with 15 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue