2012-01-19 20:34:59 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
source $stdenv/setup
|
|
|
|
|
2014-01-09 12:01:38 +00:00
|
|
|
mkdir -pv $out/bin $out/share/java
|
2012-01-19 20:34:59 +00:00
|
|
|
|
|
|
|
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"
|
2012-01-19 20:34:59 +00:00
|
|
|
|
2012-05-11 04:36:13 +01:00
|
|
|
for p in $patches;
|
|
|
|
do
|
|
|
|
patch --verbose $out_bin -p0 < $p
|
|
|
|
done
|
2012-01-19 20:34:59 +00:00
|
|
|
chmod -v 755 $out_bin
|
|
|
|
|
2012-02-29 14:35:34 +00:00
|
|
|
patchShebangs $out
|
|
|
|
|
2013-09-30 20:11:09 +01:00
|
|
|
wrapProgram $out_bin \
|
2014-02-08 20:48:50 +00:00
|
|
|
--prefix PATH ":" "${rlwrap}/bin:${coreutils}/bin:${findutils}/bin" \
|
2014-03-07 12:32:10 +00:00
|
|
|
--set LEIN_GPG ${gnupg}/bin/gpg \
|
|
|
|
--set JAVA_CMD ${jdk}/bin/java
|