1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-20 12:59:25 +00:00
nixpkgs/pkgs/development/libraries/java/saxon/default8.nix
2016-11-11 15:07:51 -05:00

27 lines
533 B
Nix

{stdenv, fetchurl, unzip, jre}:
stdenv.mkDerivation {
name = "saxonb-8.8";
src = fetchurl {
url = mirror://sourceforge/saxon/saxonb8-8j.zip;
sha256 = "15bzrfyd2f1045rsp9dp4znyhmizh1pm97q8ji2bc0b43q23xsb8";
};
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
";
meta = {
platforms = stdenv.lib.platforms.unix;
};
}