nixpkgs/pkgs/development/tools/build-managers/leiningen/builder.sh
Eelco Dolstra 55ce36faee * Updated Leiningen to 1.7.0 (contributed by Phil Hagelberg; added a
call to patchShebangs to fix the reference to /bin/bash).

svn path=/nixpkgs/trunk/; revision=32698
2012-02-29 14:35:34 +00:00

23 lines
321 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
patch --verbose $out_bin -p0 < $patches
chmod -v 755 $out_bin
patchShebangs $out
echo "Testing out \"lein version\"..."
$out_bin version
echo "Success."