nixpkgs/pkgs/development/tools/build-managers/leiningen/builder.sh
Shea Levy 6ce14a6729 leiningen: Update to 2.0.0.
Patch thanks to Patrick Lee.
2013-01-27 20:38:32 -05:00

28 lines
408 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
echo "Testing out \"lein version\"..."
$out_bin version
echo "Success."