3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/build-managers/leiningen/builder.sh

24 lines
453 B
Bash
Raw Normal View History

#!/bin/bash
source $stdenv/setup
2014-01-09 12:01:38 +00:00
mkdir -pv $out/bin $out/share/java
out_bin=$out/bin/lein
cp -v $src $out_bin
2015-01-10 13:38:45 +00:00
cp -v $jarsrc "$out/share/java/$name-standalone.jar"
for p in $patches;
do
patch --verbose $out_bin -p0 < $p
done
chmod -v 755 $out_bin
patchShebangs $out
wrapProgram $out_bin \
2014-02-08 20:48:50 +00:00
--prefix PATH ":" "${rlwrap}/bin:${coreutils}/bin:${findutils}/bin" \
2015-02-07 17:45:35 +00:00
--set LEIN_GPG ${gnupg1compat}/bin/gpg \
--set JAVA_CMD ${jdk}/bin/java