* Forgot to commit.
This commit is contained in:
parent
cb342ed0dd
commit
537f7c8c88
22
src/Hydra/lib/Hydra/View/NixPkg.pm
Normal file
22
src/Hydra/lib/Hydra/View/NixPkg.pm
Normal file
|
@ -0,0 +1,22 @@
|
|||
package Hydra::View::NixPkg;
|
||||
|
||||
use strict;
|
||||
use base qw/Catalyst::View/;
|
||||
|
||||
sub process {
|
||||
my ($self, $c) = @_;
|
||||
|
||||
$c->response->content_type('application/nix-package');
|
||||
|
||||
my $build = $c->stash->{build};
|
||||
|
||||
my $s = "NIXPKG1 " . $c->uri_for("manifest", $build->id)
|
||||
. " " . $build->nixname . " " . $build->system
|
||||
. " " . $build->drvpath . " " . $build->outpath;
|
||||
|
||||
$c->response->body($s);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
1;
|
Loading…
Reference in a new issue