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
commitf097a16992915f778e68bb0c7c841185e0033182
authorHerwig Hochleitner <herwig@bendlas.net>
dateSat 22 Dec 2018, 02:33 (8 years ago)
parent62aea95
pkgs/development/interpreters/clojure/default.nix+2−2
@@ -23,8 +23,8 @@ stdenv.mkDerivation rec {
2323 substituteInPlace clojure --replace PREFIX $prefix
2424
2525 install -Dt $out/bin clj clojure
26− wrapProgram $out/bin/clj --prefix PATH : ${binPath}
27− wrapProgram $out/bin/clojure --prefix PATH : ${binPath}
26+ wrapProgram $out/bin/clj --prefix PATH : $out/bin:${binPath}
27+ wrapProgram $out/bin/clojure --prefix PATH : $out/bin:${binPath}
2828 '';
2929
3030 meta = with stdenv.lib; {