nixpkgs/pkgs/development/tools/build-managers/leiningen/builder.sh

24 lines
395 B
Bash
Raw Normal View History

#!/bin/bash
source $stdenv/setup
2014-01-09 13:01:38 +01:00
mkdir -pv $out/bin $out/share/java
out_bin=$out/bin/lein
cp -v $src $out_bin
2014-01-09 13:01:38 +01:00
cp -v $jarsrc $out/share/java
cp -v $clojure/share/java/* $out/share/java/
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 \
--set LEIN_GPG ${gnupg}/bin/gpg