* Trang (tool for converting to and from RelaxNG schemas).
svn path=/nixpkgs/trunk/; revision=5579
This commit is contained in:
parent
6d5a7bd6df
commit
6da726d56e
@ -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
|
||||
|
15
pkgs/tools/text/xml/trang/builder.sh
Normal file
15
pkgs/tools/text/xml/trang/builder.sh
Normal 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
|
15
pkgs/tools/text/xml/trang/default.nix
Normal file
15
pkgs/tools/text/xml/trang/default.nix
Normal 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;
|
||||
}
|
@ -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;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user