From d7713b4dba98ba7e2ccc7104e25769abd9663989 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Tue, 1 Sep 2009 08:50:51 +0000 Subject: [PATCH] * Add nix version to footer of hydra pages --- release.nix | 3 ++- src/lib/Hydra/Controller/Root.pm | 1 + src/root/layout.tt | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/release.nix b/release.nix index fbb12173..3c9e58c6 100644 --- a/release.nix +++ b/release.nix @@ -95,7 +95,8 @@ let --prefix PERL5LIB ':' $out/libexec/hydra/lib:$PERL5LIB \ --prefix PATH ':' $out/bin:$hydraPath \ --set HYDRA_HOME $out/libexec/hydra \ - --set HYDRA_RELEASE ${tarball.version} + --set HYDRA_RELEASE ${tarball.version} \ + --set NIX_RELEASE ${nix.name} done ensureDir $out/share/doc/hydra/manual diff --git a/src/lib/Hydra/Controller/Root.pm b/src/lib/Hydra/Controller/Root.pm index 5d42a25f..eecb5a91 100644 --- a/src/lib/Hydra/Controller/Root.pm +++ b/src/lib/Hydra/Controller/Root.pm @@ -15,6 +15,7 @@ sub begin :Private { my ($self, $c) = @_; $c->stash->{curUri} = $c->request->uri; $c->stash->{version} = $ENV{"HYDRA_RELEASE"} || ""; + $c->stash->{nixVersion} = $ENV{"NIX_RELEASE"} || ""; } diff --git a/src/root/layout.tt b/src/root/layout.tt index bcc406a3..43b33d9f 100644 --- a/src/root/layout.tt +++ b/src/root/layout.tt @@ -80,7 +80,7 @@ [% content %]