mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
16 lines
258 B
Bash
16 lines
258 B
Bash
source $stdenv/setup
|
|
|
|
unzip $src
|
|
|
|
jar=$(ls */*.jar)
|
|
|
|
mkdir -p $out/share/java
|
|
mv $jar $out/share/java
|
|
|
|
mkdir -p $out/bin
|
|
cat > $out/bin/jdiskreport <<EOF
|
|
#! $SHELL -e
|
|
exec $jre/bin/java -jar $out/share/java/$(basename $jar)
|
|
EOF
|
|
chmod +x $out/bin/jdiskreport
|