mirror of
https://github.com/NixOS/nix
synced 2025-06-26 20:01:15 +02:00
Don't allow arbitrary computations in flake attributes
E.g. you can write 'edition = 201909' but not 'edition = 201909 + 0'. Fixes #3075.
This commit is contained in:
parent
2fa7f2a56a
commit
c87840ae14
3 changed files with 46 additions and 14 deletions
|
@ -338,6 +338,7 @@ private:
|
|||
|
||||
|
||||
/* Return a string representing the type of the value `v'. */
|
||||
string showType(ValueType type);
|
||||
string showType(const Value & v);
|
||||
|
||||
/* Decode a context string ‘!<name>!<path>’ into a pair <path,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue