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
|
2014-01-09 13:01:38 +01:00
|
|
|
cp -v $jarsrc $out/share/java
|
|
|
|
cp -v $clojure/share/java/* $out/share/java/
|
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 \
|
|
|
|
--prefix PATH ":" ${rlwrap}/bin \
|
|
|
|
--set LEIN_GPG ${gnupg}/bin/gpg
|