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