mirror of
https://github.com/NixOS/nix
synced 2025-06-28 01:11:15 +02:00
Simplify the case where the drv is a purely input-addressed one
This commit is contained in:
parent
076d2b04da
commit
f54976d77b
4 changed files with 18 additions and 2 deletions
|
@ -69,7 +69,7 @@ BuildResult Store::buildDerivation(const StorePath & drvPath, const BasicDerivat
|
|||
outputId,
|
||||
Realisation{ outputId, *staticOutput.second}
|
||||
);
|
||||
if (settings.isExperimentalFeatureEnabled("ca-derivations")) {
|
||||
if (settings.isExperimentalFeatureEnabled("ca-derivations") && !derivationHasKnownOutputPaths(drv.type())) {
|
||||
auto realisation = this->queryRealisation(outputId);
|
||||
if (realisation)
|
||||
result.builtOutputs.insert_or_assign(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue