1
0
Fork 0
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:
Eelco Dolstra 2019-09-09 16:34:44 +02:00
parent 2fa7f2a56a
commit c87840ae14
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
3 changed files with 46 additions and 14 deletions

View file

@ -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,