* Include jquery and tablesorter in the build.

This commit is contained in:
Eelco Dolstra 2008-11-28 16:23:56 +00:00
parent 3ec88541b2
commit e3f705e587

View file

@ -42,7 +42,7 @@ let
name = "hydra-build"; name = "hydra-build";
buildInputs = [ buildInputs = [
perl makeWrapper perl makeWrapper unzip
perlCatalystDevel perlCatalystDevel
perlCatalystPluginAuthenticationStoreDBIC perlCatalystPluginAuthenticationStoreDBIC
perlCatalystPluginSessionStoreFastMmap perlCatalystPluginSessionStoreFastMmap
@ -55,10 +55,23 @@ let
src=$(ls ${tarball.path}/tarballs/*.tar.bz2) 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 = '' installPhase = ''
ensureDir $out/libexec ensureDir $out/libexec
cp -prd src/Hydra $out/libexec/hydra 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 mv $out/libexec/hydra/script $out/bin
for i in $out/bin/*; do for i in $out/bin/*; do