mirror of
https://github.com/NixOS/nix
synced 2025-07-02 21:51:50 +02:00
Require ca-derivations
everywhere we create a CA derivation
"create" as in read one in from a serialized form, or build one from scratch in memory.
This commit is contained in:
parent
e32a9e124b
commit
951415b568
2 changed files with 10 additions and 6 deletions
|
@ -163,12 +163,13 @@ static DerivationOutput parseDerivationOutput(const Store & store, std::istrings
|
|||
},
|
||||
}
|
||||
}
|
||||
: DerivationOutput {
|
||||
.output = DerivationOutputFloating {
|
||||
: (settings.requireExperimentalFeature("ca-derivations"),
|
||||
DerivationOutput {
|
||||
.output = DerivationOutputFloating {
|
||||
.method = std::move(method),
|
||||
.hashType = std::move(hashType),
|
||||
},
|
||||
};
|
||||
});
|
||||
} else
|
||||
return DerivationOutput {
|
||||
.output = DerivationOutputInputAddressed {
|
||||
|
@ -559,12 +560,13 @@ static DerivationOutput readDerivationOutput(Source & in, const Store & store)
|
|||
},
|
||||
}
|
||||
}
|
||||
: DerivationOutput {
|
||||
: (settings.requireExperimentalFeature("ca-derivations"),
|
||||
DerivationOutput {
|
||||
.output = DerivationOutputFloating {
|
||||
.method = std::move(method),
|
||||
.hashType = std::move(hashType),
|
||||
},
|
||||
};
|
||||
});
|
||||
} else
|
||||
return DerivationOutput {
|
||||
.output = DerivationOutputInputAddressed {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue