* Added JDiskReport 1.2.3 (with a wrapper script `jdiskreport' to
start it). svn path=/nixpkgs/trunk/; revision=4031
This commit is contained in:
parent
5b63bb66f7
commit
e0c0a344c4
|
@ -76,6 +76,10 @@ rec {
|
|||
inherit (xlibs) libX11 libXext;
|
||||
};
|
||||
|
||||
jdiskreport = (import ../tools/misc/jdiskreport) {
|
||||
inherit fetchurl stdenv unzip jdk;
|
||||
};
|
||||
|
||||
diffutils = (import ../tools/text/diffutils) {
|
||||
inherit fetchurl stdenv coreutils;
|
||||
};
|
||||
|
|
14
pkgs/tools/misc/jdiskreport/builder.sh
Normal file
14
pkgs/tools/misc/jdiskreport/builder.sh
Normal 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
|
14
pkgs/tools/misc/jdiskreport/default.nix
Normal file
14
pkgs/tools/misc/jdiskreport/default.nix
Normal 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;
|
||||
}
|
Loading…
Reference in a new issue