clojure: Fix bin wrappers

This commit is contained in:
adisbladis 2018-07-17 10:25:11 +08:00
parent 8258f5bda4
commit d1eaa5b651
No known key found for this signature in database
GPG Key ID: ED58F95069B004F5

View File

@ -13,7 +13,9 @@ stdenv.mkDerivation rec {
outputs = [ "out" "prefix" ];
installPhase = ''
installPhase = let
binPath = stdenv.lib.makeBinPath [ rlwrap jdk ];
in ''
mkdir -p $prefix/libexec
cp clojure-tools-${version}.jar $prefix/libexec
cp {,example-}deps.edn $prefix
@ -21,8 +23,8 @@ stdenv.mkDerivation rec {
substituteInPlace clojure --replace PREFIX $prefix
install -Dt $out/bin clj clojure
wrapProgram $out/bin/clj --suffix PATH ${rlwrap}/bin
wrapProgram $out/bin/clojure --suffix PATH ${jdk}/bin
wrapProgram $out/bin/clj --prefix PATH : ${binPath}
wrapProgram $out/bin/clojure --prefix PATH : ${binPath}
'';
meta = with stdenv.lib; {