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