8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
30 lines
799 B
Nix
30 lines
799 B
Nix
{ stdenv, fetchurl, jre }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "clojure-lsp";
|
|
version = "20200412T033138";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/snoe/clojure-lsp/releases/download/release-${version}/${pname}";
|
|
sha256 = "19i6sikg5x5qzcbakzbiqbcy5q2srqk6ihpmb3l90n1p4jn4605c";
|
|
};
|
|
|
|
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;
|
|
};
|
|
|
|
}
|