2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchurl, jre }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "clojure-lsp";
|
2020-05-29 06:06:01 +00:00
|
|
|
version = "20200514T134144";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://github.com/snoe/clojure-lsp/releases/download/release-${version}/${pname}";
|
2020-05-29 06:06:01 +00:00
|
|
|
sha256 = "1c56k9zxi71gjlrmjk2risx04dzr460vql42pfjwm1cv543kij9r";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
dontUnpack = true;
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 $src $out/bin/clojure-lsp
|
|
|
|
sed -i -e '1 s!java!${jre}/bin/java!' $out/bin/clojure-lsp
|
|
|
|
'';
|
|
|
|
|
|
|
|
# verify shebang patch
|
|
|
|
installCheckPhase = "PATH= clojure-lsp --version";
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|