mirror of
https://github.com/NixOS/nix
synced 2025-06-28 05:21:16 +02:00
nix-instantiate: Fix read-only evaluation
This commit is contained in:
parent
8d8d47abd2
commit
408a7bfac1
5 changed files with 17 additions and 10 deletions
|
@ -28,6 +28,17 @@ string DrvInfo::queryOutPath(EvalState & state) const
|
|||
}
|
||||
|
||||
|
||||
string DrvInfo::queryOutputName(EvalState & state) const
|
||||
{
|
||||
if (outputName == "" && attrs) {
|
||||
Bindings::iterator i = attrs->find(state.sOutputName);
|
||||
PathSet context;
|
||||
(string &) outputName = i != attrs->end() ? state.coerceToString(*i->value, context) : "";
|
||||
}
|
||||
return outputName;
|
||||
}
|
||||
|
||||
|
||||
MetaInfo DrvInfo::queryMetaInfo(EvalState & state) const
|
||||
{
|
||||
if (metaInfoRead) return meta;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue