* Add derivations and all build-time dependencies of a build to the

Hydra channels.  This includes sources.
This commit is contained in:
Eelco Dolstra
2010-01-19 16:47:32 +00:00
parent a2a041303f
commit 4b0bc65cbb
3 changed files with 9 additions and 3 deletions

View File

@ -70,7 +70,13 @@ sub getChannelData {
my @storePaths = ();
foreach my $build (@builds2) {
next unless isValidPath($build->outpath);
push @storePaths, $build->outpath;
if (isValidPath($build->drvpath)) {
# Adding `drvpath' implies adding `outpath' because of the
# `--include-outputs' flag passed to `nix-store'.
push @storePaths, $build->drvpath;
} else {
push @storePaths, $build->outpath;
}
my $pkgName = $build->nixname . "-" . $build->system . "-" . $build->id;
$c->stash->{nixPkgs}->{"${pkgName}.nixpkg"} = {build => $build, name => $pkgName};
};