2c64c7fe9d
- apply patch (applied upstream) to assume rlwrap is present - update expression to depend on rlwrap - rebase the nix-specific patch to apply cleanly svn path=/nixpkgs/trunk/; revision=34056
28 lines
400 B
Bash
28 lines
400 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 $clojuresrc $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
|
|
|
|
echo "Testing out \"lein version\"..."
|
|
$out_bin version
|
|
echo "Success."
|