2007-01-07 18:10:14 +01:00
|
|
|
{stdenv, fetchurl, unzip, jre}:
|
2004-08-25 19:18:19 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2007-01-07 18:10:14 +01:00
|
|
|
name = "saxonb-8.8";
|
2004-08-25 19:18:19 +02:00
|
|
|
src = fetchurl {
|
2007-08-27 15:01:33 +02:00
|
|
|
url = mirror://sourceforge/saxon/saxonb8-8j.zip;
|
2007-01-07 18:10:14 +01:00
|
|
|
md5 = "35c4c376174cfe340f179d2e44dd84f0";
|
2004-08-25 19:18:19 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [unzip];
|
2007-01-07 18:10:14 +01:00
|
|
|
|
|
|
|
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
|
|
|
|
";
|
2004-08-25 19:18:19 +02:00
|
|
|
}
|