diff --git a/src/lib/Hydra/Helper/Nix.pm b/src/lib/Hydra/Helper/Nix.pm index 8c955e52..3a898745 100644 --- a/src/lib/Hydra/Helper/Nix.pm +++ b/src/lib/Hydra/Helper/Nix.pm @@ -449,7 +449,7 @@ sub restartBuilds($$) { foreach my $build ($builds->all) { next if !isValidPath($build->drvpath); - push @paths, $build->drvpath; + push @paths, $_->path foreach $build->buildoutputs->all; push @buildIds, $build->id; registerRoot $build->drvpath; }