aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEelco Dolstra <edolstra@gmail.com>2022-04-28 14:05:29 +0200
committerGitHub <noreply@github.com>2022-04-28 14:05:29 +0200
commit660835da69464304fa772d9e354330ad4927de6e (patch)
tree0ef9ad1fe494918ef08f439309aaa1a20780590b /src
parent35393dc2c65765acb6cc99d6a976eab62c28a51d (diff)
parent4a9623b129730d3af3e99773a9f2a53395435311 (diff)
Merge pull request #6459 from edolstra/fix-out-paths
Fix passing $OUT_PATHS to the post-build hook
Diffstat (limited to 'src')
-rw-r--r--src/libstore/build/derivation-goal.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libstore/build/derivation-goal.cc b/src/libstore/build/derivation-goal.cc
index 53f212c1d..d095a0f02 100644
--- a/src/libstore/build/derivation-goal.cc
+++ b/src/libstore/build/derivation-goal.cc
@@ -786,8 +786,7 @@ void runPostBuildHook(
Store & store,
Logger & logger,
const StorePath & drvPath,
- StorePathSet outputPaths
-)
+ const StorePathSet & outputPaths)
{
auto hook = settings.postBuildHook;
if (hook == "")
@@ -906,7 +905,7 @@ void DerivationGoal::buildDone()
auto builtOutputs = registerOutputs();
StorePathSet outputPaths;
- for (auto & [_, output] : buildResult.builtOutputs)
+ for (auto & [_, output] : builtOutputs)
outputPaths.insert(output.outPath);
runPostBuildHook(
worker.store,