2012-01-19 21:34:59 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
source $stdenv/setup
|
|
|
|
|
2014-01-09 13:01:38 +01:00
|
|
|
mkdir -pv $out/bin $out/share/java
|
2012-01-19 21:34:59 +01:00
|
|
|
|
|
|
|
out_bin=$out/bin/lein
|
|
|
|
|
|
|
|
cp -v $src $out_bin
|
2015-01-10 14:38:45 +01:00
|
|
|
cp -v $jarsrc "$out/share/java/$name-standalone.jar"
|
2012-01-19 21:34:59 +01:00
|
|
|
|
2012-05-11 05:36:13 +02:00
|
|
|
for p in $patches;
|
|
|
|
do
|
|
|
|
patch --verbose $out_bin -p0 < $p
|
|
|
|
done
|
2012-01-19 21:34:59 +01:00
|
|
|
chmod -v 755 $out_bin
|
|
|
|
|
2012-02-29 15:35:34 +01:00
|
|
|
patchShebangs $out
|
|
|
|
|
2013-09-30 21:11:09 +02:00
|
|
|
wrapProgram $out_bin \
|
2014-02-08 21:48:50 +01:00
|
|
|
--prefix PATH ":" "${rlwrap}/bin:${coreutils}/bin:${findutils}/bin" \
|
2015-02-07 18:45:35 +01:00
|
|
|
--set LEIN_GPG ${gnupg1compat}/bin/gpg \
|
2014-03-07 13:32:10 +01:00
|
|
|
--set JAVA_CMD ${jdk}/bin/java
|