* Saxon 8.8. Also create a wrapper script so it can be run from the

command line.

svn path=/nixpkgs/trunk/; revision=7549
This commit is contained in:
Eelco Dolstra 2007-01-07 17:10:14 +00:00
parent 35a9f7ecb6
commit c646e8594a
2 changed files with 16 additions and 7 deletions

View File

@ -1,13 +1,22 @@
{stdenv, fetchurl, unzip}:
{stdenv, fetchurl, unzip, jre}:
stdenv.mkDerivation {
name = "saxonb-8.0";
builder = ./unzip-builder.sh;
name = "saxonb-8.8";
src = fetchurl {
url = http://nix.cs.uu.nl/dist/tarballs/saxonb8-0.zip;
md5 = "d05fbd398847ef27b2d1d875bb5136ea";
url = http://mesh.dl.sourceforge.net/sourceforge/saxon/saxonb8-8j.zip;
md5 = "35c4c376174cfe340f179d2e44dd84f0";
};
inherit unzip;
buildInputs = [unzip];
buildCommand = "
unzip $src -d $out
ensureDir $out/bin
cat > $out/bin/saxon8 <<EOF
#! $shell
export JAVA_HOME=${jre}
exec ${jre}/bin/java -jar $out/saxon8.jar \"\\$@\"
EOF
chmod a+x $out/bin/saxon8
";
}

View File

@ -1776,7 +1776,7 @@ rec {
};
saxonb = import ../development/libraries/java/saxon/default8.nix {
inherit fetchurl stdenv unzip;
inherit fetchurl stdenv unzip jre;
};
sharedobjects = import ../development/libraries/java/shared-objects {