1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 19:01:16 +02:00

Merge branch 'tojson-tostring-fix' of https://github.com/mayflower/nix

This commit is contained in:
Eelco Dolstra 2019-10-27 12:18:35 +01:00
commit e012384fe9
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
5 changed files with 29 additions and 8 deletions

View file

@ -9,6 +9,7 @@
#include "function-trace.hh"
#include <map>
#include <optional>
#include <unordered_map>
@ -196,6 +197,9 @@ public:
set with attribute `type = "derivation"'). */
bool isDerivation(Value & v);
std::optional<string> tryAttrsToString(const Pos & pos, Value & v,
PathSet & context, bool coerceMore = false, bool copyToStore = true);
/* String coercion. Converts strings, paths and derivations to a
string. If `coerceMore' is set, also converts nulls, integers,
booleans and lists to a string. If `copyToStore' is set,