1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/tools/misc/jdiskreport/builder.sh

16 lines
252 B
Bash

source $stdenv/setup
unzip $src
jar=$(ls */*.jar)
mkdir -p $out/lib/java
mv $jar $out/lib/java
mkdir -p $out/bin
cat > $out/bin/jdiskreport <<EOF
#! $SHELL -e
exec $jre/bin/java -jar $out/lib/java/$(basename $jar)
EOF
chmod +x $out/bin/jdiskreport