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

24 lines
453 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
2015-01-10 14:38:45 +01:00
cp -v $jarsrc "$out/share/java/$name-standalone.jar"
for p in $patches;
do
patch --verbose $out_bin -p0 < $p
done
chmod -v 755 $out_bin
patchShebangs $out
wrapProgram $out_bin \
2014-02-08 21:48:50 +01:00
--prefix PATH ":" "${rlwrap}/bin:${coreutils}/bin:${findutils}/bin" \
2015-02-07 18:45:35 +01:00
--set LEIN_GPG ${gnupg1compat}/bin/gpg \
--set JAVA_CMD ${jdk}/bin/java