diff options
Diffstat (limited to 'pkgs/tools/misc/jdiskreport/builder.sh')
-rw-r--r-- | pkgs/tools/misc/jdiskreport/builder.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/pkgs/tools/misc/jdiskreport/builder.sh b/pkgs/tools/misc/jdiskreport/builder.sh new file mode 100644 index 0000000000000..aa4ba13963cd3 --- /dev/null +++ b/pkgs/tools/misc/jdiskreport/builder.sh @@ -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 |