{ stdenv, fetchFromGitHub, jre_headless, jdk, ant, saxon }: stdenv.mkDerivation rec { name = "jing-trang-${version}"; version = "20150603"; src = fetchFromGitHub { owner = "relaxng"; repo = "jing-trang"; rev = "54b9b1f4e67cd79c7987750d8c9dcfc014af98c3"; # needed to compile with jdk8 sha256 = "0wa569xjb7ihhcaazz32y2b0dv092lisjz77isz1gfb1wvf53di5"; }; buildInputs = [ jdk ant saxon ]; preBuild = "ant"; installPhase = '' mkdir -p "$out"/{share/java,bin} cp ./build/*.jar "$out/share/java/" for tool in jing trang; do cat > "$out/bin/$tool" <