clojure: add $out/bin to wrapper PATH

without this, the `clj` command calls into system path, instead of its
own `clojure` command

cc @the-kenny
This commit is contained in:
Herwig Hochleitner 2018-12-22 02:33:18 +01:00
parent 62aea9510c
commit f097a16992

@ -23,8 +23,8 @@ stdenv.mkDerivation rec {
substituteInPlace clojure --replace PREFIX $prefix
install -Dt $out/bin clj clojure
wrapProgram $out/bin/clj --prefix PATH : ${binPath}
wrapProgram $out/bin/clojure --prefix PATH : ${binPath}
wrapProgram $out/bin/clj --prefix PATH : $out/bin:${binPath}
wrapProgram $out/bin/clojure --prefix PATH : $out/bin:${binPath}
'';
meta = with stdenv.lib; {