2012-01-19 21:34:59 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
source $stdenv/setup
|
|
|
|
|
|
|
|
mkdir -pv $out/bin $out/lib
|
|
|
|
|
|
|
|
out_bin=$out/bin/lein
|
|
|
|
|
|
|
|
cp -v $src $out_bin
|
|
|
|
cp -v $jarsrc $out/lib
|
2013-01-28 02:38:32 +01:00
|
|
|
cp -v $clojure/lib/java/* $out/lib
|
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
|
|
|
|
|
2012-05-11 05:36:13 +02:00
|
|
|
wrapProgram $out_bin --prefix PATH ":" ${rlwrap}/bin
|
|
|
|
|
2012-01-19 21:34:59 +01:00
|
|
|
echo "Testing out \"lein version\"..."
|
|
|
|
$out_bin version
|
|
|
|
echo "Success."
|