aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorregnat <rg@regnat.ovh>2020-12-21 21:26:29 +0100
committerregnat <rg@regnat.ovh>2021-01-18 11:31:59 +0100
commit11b63740e377202e237b7bc74806b82a1eb8ce11 (patch)
treeec31440aff5a525ff7b437a122594866f006a1db /src
parent00eef5599374608f535bed0daede024c5e24764f (diff)
Fix content-addressed flake outputs
Prevent some `nix flake` commands to crash by trying to parse a placeholder output as a store path
Diffstat (limited to 'src')
-rw-r--r--src/nix/installables.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/installables.cc b/src/nix/installables.cc
index 50e3b29c4..34ee238bf 100644
--- a/src/nix/installables.cc
+++ b/src/nix/installables.cc
@@ -501,7 +501,7 @@ std::tuple<std::string, FlakeRef, InstallableValue::DerivationInfo> InstallableF
auto drvInfo = DerivationInfo{
std::move(drvPath),
- state->store->parseStorePath(attr->getAttr(state->sOutPath)->getString()),
+ state->store->maybeParseStorePath(attr->getAttr(state->sOutPath)->getString()),
attr->getAttr(state->sOutputName)->getString()
};