clojure: Fix bin wrappers
This commit is contained in:
parent
8258f5bda4
commit
d1eaa5b651
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user