From e3f705e5875441c912870dc9f6fe0de35f922656 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 28 Nov 2008 16:23:56 +0000 Subject: [PATCH] * Include jquery and tablesorter in the build. --- release.nix | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/release.nix b/release.nix index bd443898..0a98db50 100644 --- a/release.nix +++ b/release.nix @@ -42,7 +42,7 @@ let name = "hydra-build"; buildInputs = [ - perl makeWrapper + perl makeWrapper unzip perlCatalystDevel perlCatalystPluginAuthenticationStoreDBIC perlCatalystPluginSessionStoreFastMmap @@ -55,10 +55,23 @@ let src=$(ls ${tarball.path}/tarballs/*.tar.bz2) ''; # */ + jquery = fetchurl { + url = http://jqueryjs.googlecode.com/files/jquery-1.2.6.pack.js; + sha1 = "c10dbe0c2b23444d0794f3376398702d84f41583"; + }; + + tablesorter = fetchurl { + url = http://tablesorter.com/jquery.tablesorter.zip; + sha256 = "013zgglvifvy0yg0ybjrl823sswy9v1ihf5nmighmcyigfd6nrhb"; + }; + installPhase = '' ensureDir $out/libexec cp -prd src/Hydra $out/libexec/hydra + cp $jquery $out/libexec/hydra/root/static/js/jquery-pack.js + unzip -d $out/libexec/hydra/root/static/js $tablesorter + mv $out/libexec/hydra/script $out/bin for i in $out/bin/*; do