2019-12-06 23:45:12 +00:00
|
|
|
{ stdenv, fetchurl, jre }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "clojure-lsp";
|
2020-09-04 08:16:31 +00:00
|
|
|
version = "20200828T065654";
|
2019-12-06 23:45:12 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/snoe/clojure-lsp/releases/download/release-${version}/${pname}";
|
2020-09-04 08:16:31 +00:00
|
|
|
sha256 = "1399xjcnnb7vazy1jv3h7lnh1dyn81yk2bwi6ai991a9fsinjnf2";
|
2019-12-06 23:45:12 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 $src $out/bin/clojure-lsp
|
2020-04-01 12:07:51 +00:00
|
|
|
sed -i -e '1 s!java!${jre}/bin/java!' $out/bin/clojure-lsp
|
2019-12-06 23:45:12 +00:00
|
|
|
'';
|
|
|
|
|
2020-04-01 12:16:23 +00:00
|
|
|
# verify shebang patch
|
|
|
|
installCheckPhase = "PATH= clojure-lsp --version";
|
|
|
|
|
2019-12-06 23:45:12 +00:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Language Server Protocol (LSP) for Clojure";
|
|
|
|
homepage = "https://github.com/snoe/clojure-lsp";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = [ maintainers.ericdallo ];
|
|
|
|
platforms = jre.meta.platforms;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|