aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2020-02-18 22:05:49 +0100
committerEelco Dolstra <edolstra@gmail.com>2020-02-18 22:05:49 +0100
commitedee6169bf772ba101be7cd2dcb5aa7814415466 (patch)
tree6373584eeb72c69302101c055966f571aba51b90
parent1351101c2875982557fd8ed6ccbe19a4df9d613b (diff)
nix eval-hydra-jobs: Fix aggregate derivation name
-rw-r--r--src/nix/eval-hydra-jobs.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/nix/eval-hydra-jobs.cc b/src/nix/eval-hydra-jobs.cc
index 57edfc70c..579e7ad31 100644
--- a/src/nix/eval-hydra-jobs.cc
+++ b/src/nix/eval-hydra-jobs.cc
@@ -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);