diff --git a/pkgs/tools/text/xml/jing/default.nix b/pkgs/tools/text/xml/jing/default.nix index 5b7c0803fc8..5737fff14f5 100644 --- a/pkgs/tools/text/xml/jing/default.nix +++ b/pkgs/tools/text/xml/jing/default.nix @@ -1,13 +1,22 @@ -{stdenv, fetchurl, unzip} : +{ stdenv, fetchurl, unzip, jre }: stdenv.mkDerivation { - name = "jing-20030619"; + name = "jing-20091111"; builder = ./unzip-builder.sh; src = fetchurl { - url = http://www.thaiopensource.com/download/jing-20030619.zip; - md5 = "f9b0775d8740f16ab3df82ad3707a093"; + url = https://jing-trang.googlecode.com/files/jing-20091111.zip; + sha256 = "134h2r22r64v5yk4v8mhl6r893dlw5vzx9daf2sj2mbbma004sap"; }; - inherit unzip; -} \ No newline at end of file + inherit unzip jre; + + meta = with stdenv.lib; { + description = "A RELAX NG validator in Java"; + # The homepage is www.thaiopensource.com, but it links to googlecode.com + # for downloads and call it the "project site". + homepage = http://www.thaiopensource.com/relaxng/jing.html; + platforms = platforms.linux; + maintainers = [ maintainers.bjornfor ]; + }; +} diff --git a/pkgs/tools/text/xml/jing/unzip-builder.sh b/pkgs/tools/text/xml/jing/unzip-builder.sh index 5f8738da51c..c02920e5a69 100755 --- a/pkgs/tools/text/xml/jing/unzip-builder.sh +++ b/pkgs/tools/text/xml/jing/unzip-builder.sh @@ -4,3 +4,11 @@ source $stdenv/setup $unzip/bin/unzip $src mkdir -p $out mv $name/* $out + +cat > "$out/bin/jing" <