Added jclasslib, a util for inspecting java class files

svn path=/nixpkgs/trunk/; revision=1296
This commit is contained in:
Martin Bravenboer 2004-08-19 13:57:38 +00:00
parent 009cda1fb2
commit 51cdaa0338
3 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,16 @@
. $stdenv/setup || exit 1
tar zxf $src || exit 1
mkdir -p $out/bin
mv jclasslib/bin/jclasslib.jar $out/bin/ || exit 1
cat >> $out/bin/jclasslib <<EOF
#! /bin/sh
export JAVA_HOME=$j2re
$j2re/bin/java -jar $out/bin/jclasslib.jar \$@
EOF
chmod a+x $out/bin/jclasslib || exit 1

View file

@ -0,0 +1,12 @@
{stdenv, fetchurl, j2re}:
stdenv.mkDerivation {
name = "jclasslib-2.0";
builder = ./builder.sh;
src = fetchurl {
url = http://belnet.dl.sourceforge.net/sourceforge/jclasslib/jclasslib_unix_2_0.tar.gz;
md5 = "31d91bb03fee23410689d2f1c4c439b1";
};
inherit j2re;
}

View file

@ -306,6 +306,11 @@ rec {
inherit fetchurl stdenv;
};
jclasslib = (import ../development/tools/java/jclasslib) {
inherit fetchurl stdenv;
j2re = j2sdk15;
};
ocaml = (import ../development/compilers/ocaml) {
inherit fetchurl stdenv x11;
};