mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
be64949688
...by setting JAVA_CMD in the wrapper.
24 lines
468 B
Bash
24 lines
468 B
Bash
#!/bin/bash
|
|
|
|
source $stdenv/setup
|
|
|
|
mkdir -pv $out/bin $out/share/java
|
|
|
|
out_bin=$out/bin/lein
|
|
|
|
cp -v $src $out_bin
|
|
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:${coreutils}/bin:${findutils}/bin" \
|
|
--set LEIN_GPG ${gnupg}/bin/gpg \
|
|
--set JAVA_CMD ${jdk}/bin/java
|