nixpkgs/pkgs/development/tools/build-managers/leiningen/builder.sh
Moritz Ulrich 02707296e8 Update leiningen to 2.3.0.
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>
2013-08-09 17:30:10 +02:00

23 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