mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-12-29 06:45:54 +03:00
16 lines
252 B
Bash
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
|