02707296e8
Unfortunately, leiningen will now pull in some dependencies via maven (via http) on `lein version' so the test at the end of builder.sh failed. This is okay because leiningen is used only as a interactive tool and no other package in Nixpkgs depends on it. Signed-off-by: Moritz Ulrich <moritz@tarn-vedra.de>
24 lines
335 B
Bash
24 lines
335 B
Bash
#!/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
|
|
cp -v $clojure/lib/java/* $out/lib
|
|
|
|
for p in $patches;
|
|
do
|
|
patch --verbose $out_bin -p0 < $p
|
|
done
|
|
chmod -v 755 $out_bin
|
|
|
|
patchShebangs $out
|
|
|
|
wrapProgram $out_bin --prefix PATH ":" ${rlwrap}/bin
|