From 09e333566427311fb6fde48da273d90833c1adb1 Mon Sep 17 00:00:00 2001 From: Martin Bravenboer Date: Sun, 26 Sep 2004 13:03:59 +0000 Subject: [PATCH] Added jing package (RELAX NG validation) and jing-tools for invoking the Java application svn path=/nixpkgs/trunk/; revision=1508 --- pkgs/system/all-packages-generic.nix | 5 +++++ pkgs/tools/text/xml/jing/default.nix | 13 +++++++++++++ pkgs/tools/text/xml/jing/jing-script.nix | 12 ++++++++++++ pkgs/tools/text/xml/jing/script-builder.sh | 14 ++++++++++++++ pkgs/tools/text/xml/jing/unzip-builder.sh | 6 ++++++ 5 files changed, 50 insertions(+) create mode 100644 pkgs/tools/text/xml/jing/default.nix create mode 100644 pkgs/tools/text/xml/jing/jing-script.nix create mode 100644 pkgs/tools/text/xml/jing/script-builder.sh create mode 100755 pkgs/tools/text/xml/jing/unzip-builder.sh diff --git a/pkgs/system/all-packages-generic.nix b/pkgs/system/all-packages-generic.nix index 4382eff1c934..ccd84368438c 100644 --- a/pkgs/system/all-packages-generic.nix +++ b/pkgs/system/all-packages-generic.nix @@ -77,6 +77,11 @@ rec { inherit fetchurl stdenv python libxml2; }; + jing_tools = (import ../tools/text/xml/jing/jing-script.nix) { + inherit fetchurl stdenv unzip; + j2re = blackdown; + }; + gnutar = (import ../tools/archivers/gnutar) { inherit fetchurl stdenv; }; diff --git a/pkgs/tools/text/xml/jing/default.nix b/pkgs/tools/text/xml/jing/default.nix new file mode 100644 index 000000000000..5b7c0803fc8a --- /dev/null +++ b/pkgs/tools/text/xml/jing/default.nix @@ -0,0 +1,13 @@ +{stdenv, fetchurl, unzip} : + +stdenv.mkDerivation { + name = "jing-20030619"; + builder = ./unzip-builder.sh; + + src = fetchurl { + url = http://www.thaiopensource.com/download/jing-20030619.zip; + md5 = "f9b0775d8740f16ab3df82ad3707a093"; + }; + + inherit unzip; +} \ No newline at end of file diff --git a/pkgs/tools/text/xml/jing/jing-script.nix b/pkgs/tools/text/xml/jing/jing-script.nix new file mode 100644 index 000000000000..10f0aa90151c --- /dev/null +++ b/pkgs/tools/text/xml/jing/jing-script.nix @@ -0,0 +1,12 @@ +{stdenv, fetchurl, j2re, unzip} : + +stdenv.mkDerivation { + name = "jing-tools"; + builder = ./script-builder.sh; + + jing = (import ./default.nix) { + inherit stdenv fetchurl unzip; + }; + + inherit j2re; +} \ No newline at end of file diff --git a/pkgs/tools/text/xml/jing/script-builder.sh b/pkgs/tools/text/xml/jing/script-builder.sh new file mode 100644 index 000000000000..fa9f727e1311 --- /dev/null +++ b/pkgs/tools/text/xml/jing/script-builder.sh @@ -0,0 +1,14 @@ +. $stdenv/setup || exit 1 + +mkdir -p $out/bin || exit 1 + +cat >> $out/bin/jing <