3
0
Fork 0
forked from mirrors/nixpkgs

* Added JDiskReport 1.2.3 (with a wrapper script `jdiskreport' to

start it).

svn path=/nixpkgs/trunk/; revision=4031
This commit is contained in:
Eelco Dolstra 2005-10-07 23:02:58 +00:00
parent 5b63bb66f7
commit e0c0a344c4
3 changed files with 32 additions and 0 deletions

View file

@ -76,6 +76,10 @@ rec {
inherit (xlibs) libX11 libXext; inherit (xlibs) libX11 libXext;
}; };
jdiskreport = (import ../tools/misc/jdiskreport) {
inherit fetchurl stdenv unzip jdk;
};
diffutils = (import ../tools/text/diffutils) { diffutils = (import ../tools/text/diffutils) {
inherit fetchurl stdenv coreutils; inherit fetchurl stdenv coreutils;
}; };

View file

@ -0,0 +1,14 @@
source $stdenv/setup
unzip $src
ensureDir $out/jars
mv */*.jar $out/jars
jar=$(ls $out/jars/jdiskreport-*.jar)
ensureDir $out/bin
cat > $out/bin/jdiskreport <<EOF
#! $SHELL -e
exec $jdk/bin/java -jar $jar
EOF
chmod +x $out/bin/jdiskreport

View file

@ -0,0 +1,14 @@
{stdenv, fetchurl, unzip, jdk}:
assert jdk.swingSupport;
stdenv.mkDerivation {
name = "jdiskreport-1.2.3";
builder = ./builder.sh;
src = fetchurl {
url = http://www.jgoodies.com/download/jdiskreport/jdiskreport-1_2_3.zip;
md5 = "4a33c5c1344ed9e0fa531e2cb1875cb8";
};
buildInputs = [unzip];
inherit jdk;
}