nix eval-hydra-jobs: Fix aggregate derivation name

This commit is contained in:
Eelco Dolstra 2020-02-18 22:05:49 +01:00
parent 1351101c28
commit edee6169bf

View File

@ -386,6 +386,8 @@ struct CmdEvalHydraJobs : MixJSON, MixDryRun, InstallableCommand
}
std::string drvName(store->parseStorePath(drvPath).name());
assert(hasSuffix(drvName, drvExtension));
drvName.resize(drvName.size() - drvExtension.size());
auto h = hashDerivationModulo(*store, drv, true);
auto outPath = store->makeOutputPath("out", h, drvName);
drv.env["out"] = store->printStorePath(outPath);