From 537f7c8c88efdd3f1f466d58721b0a5b89cc9385 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Wed, 25 Feb 2009 14:33:33 +0000 Subject: [PATCH] * Forgot to commit. --- src/Hydra/lib/Hydra/View/NixPkg.pm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/Hydra/lib/Hydra/View/NixPkg.pm diff --git a/src/Hydra/lib/Hydra/View/NixPkg.pm b/src/Hydra/lib/Hydra/View/NixPkg.pm new file mode 100644 index 00000000..010c6df8 --- /dev/null +++ b/src/Hydra/lib/Hydra/View/NixPkg.pm @@ -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;