3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/java/saxon/default8.nix
Eelco Dolstra c556a6ea46 * "ensureDir" -> "mkdir -p". "ensureDir" is a rather pointless
function, so obsolete it.

svn path=/nixpkgs/branches/stdenv-updates/; revision=31644
2012-01-18 20:16:00 +00:00

23 lines
450 B
Nix

{stdenv, fetchurl, unzip, jre}:
stdenv.mkDerivation {
name = "saxonb-8.8";
src = fetchurl {
url = mirror://sourceforge/saxon/saxonb8-8j.zip;
md5 = "35c4c376174cfe340f179d2e44dd84f0";
};
buildInputs = [unzip];
buildCommand = "
unzip $src -d $out
mkdir -p $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
";
}