1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00

* Trang (tool for converting to and from RelaxNG schemas).

svn path=/nixpkgs/trunk/; revision=5579
This commit is contained in:
Eelco Dolstra 2006-07-04 19:17:34 +00:00
parent 6d5a7bd6df
commit 6da726d56e
4 changed files with 40 additions and 5 deletions

View file

@ -1,14 +1,14 @@
source $stdenv/setup || exit 1
source $stdenv/setup
mkdir -p $out/bin || exit 1
ensureDir $out/bin
cat >> $out/bin/jing <<EOF
#! /bin/sh
#! $SHELL
export JAVA_HOME=$jre
export LANG="en_US"
$jre/bin/java -jar $jing/bin/jing.jar \$@
exec $jre/bin/java -jar $jing/bin/jing.jar "\$@"
EOF
chmod a+x $out/bin/jing || exit 1
chmod a+x $out/bin/jing

View file

@ -0,0 +1,15 @@
source $stdenv/setup
ensureDir $out/jars
unzip -j $src '*/trang.jar'
cp -p *.jar $out/jars
ensureDir $out/bin
cat >> $out/bin/trang <<EOF
#! $SHELL
export JAVA_HOME=$jre
exec $jre/bin/java -jar $out/jars/trang.jar "\$@"
EOF
chmod a+x $out/bin/trang

View file

@ -0,0 +1,15 @@
{stdenv, fetchurl, jre, unzip}:
stdenv.mkDerivation {
name = "trang-20030619";
builder = ./builder.sh;
src = fetchurl {
url = http://www.thaiopensource.com/download/trang-20030619.zip;
md5 = "9611ea59fda0f62fecc4a5017a72984e";
};
buildInputs = [unzip];
inherit jre;
}

View file

@ -208,6 +208,11 @@ rec {
jre = blackdown;
};
trang = import ../tools/text/xml/trang {
inherit fetchurl stdenv unzip;
jre = blackdown;
};
cpio = (import ../tools/archivers/cpio) {
inherit fetchurl stdenv;
};