2009-02-25 14:33:33 +00:00
|
|
|
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};
|
|
|
|
|
2009-02-26 21:33:29 +00:00
|
|
|
my $s = "NIXPKG1 " . $c->stash->{manifestUri}
|
2009-02-25 14:33:33 +00:00
|
|
|
. " " . $build->nixname . " " . $build->system
|
|
|
|
. " " . $build->drvpath . " " . $build->outpath;
|
|
|
|
|
|
|
|
$c->response->body($s);
|
|
|
|
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
1;
|