aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-03-31 16:39:18 +0200
committerEelco Dolstra <edolstra@gmail.com>2022-03-31 16:39:18 +0200
commita99af85a770df462985b621c4c3dd710b8487f44 (patch)
treebfba53f9e60353554ff5e77fdb366e645138a6b1
parent6051cc954b990fa57a6d3b75bd4b0aaaceb0ca82 (diff)
Fix macOS build
-rw-r--r--src/libstore/derivations.cc8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/libstore/derivations.cc b/src/libstore/derivations.cc
index cc04119c3..1c695de82 100644
--- a/src/libstore/derivations.cc
+++ b/src/libstore/derivations.cc
@@ -222,11 +222,9 @@ static DerivationOutput parseDerivationOutput(const Store & store,
if (hash == "impure") {
settings.requireExperimentalFeature(Xp::ImpureDerivations);
assert(pathS == "");
- return DerivationOutput {
- .output = DerivationOutputImpure {
- .method = std::move(method),
- .hashType = std::move(hashType),
- },
+ return DerivationOutput::Impure {
+ .method = std::move(method),
+ .hashType = std::move(hashType),
};
} else if (hash != "") {
validatePath(pathS);