mirror of
https://github.com/NixOS/nix
synced 2025-06-27 12:41:15 +02:00
Decode string context straight to using StorePath
s
I gather decoding happens on demand, so I hope don't think this should have any perf implications one way or the other.
This commit is contained in:
parent
91adfb8894
commit
4d6a3806d2
7 changed files with 38 additions and 24 deletions
|
@ -17,7 +17,7 @@
|
|||
namespace nix {
|
||||
|
||||
|
||||
class Store;
|
||||
struct Store;
|
||||
class EvalState;
|
||||
class StorePath;
|
||||
enum RepairFlag : bool;
|
||||
|
@ -430,7 +430,7 @@ std::string showType(const Value & v);
|
|||
|
||||
/* Decode a context string ‘!<name>!<path>’ into a pair <path,
|
||||
name>. */
|
||||
NixStringContextElem decodeContext(std::string_view s);
|
||||
NixStringContextElem decodeContext(const Store & store, std::string_view s);
|
||||
|
||||
/* If `path' refers to a directory, then append "/default.nix". */
|
||||
Path resolveExprPath(Path path);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue