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;
|
2016-11-11 03:03:51 +00:00
|
|
|
sha256 = "15bzrfyd2f1045rsp9dp4znyhmizh1pm97q8ji2bc0b43q23xsb8";
|
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
|
|
|
|
";
|
2016-08-02 17:06:29 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
platforms = stdenv.lib.platforms.unix;
|
|
|
|
};
|
2004-08-25 18:18:19 +01:00
|
|
|
}
|