b6d97fd731
GitOrigin-RevId: be0b453d7c7eee2090962c9a83749b024ff9acf5
30 lines
799 B
Nix
30 lines
799 B
Nix
{ stdenv, fetchurl, jre }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "clojure-lsp";
|
|
version = "20201207T142850";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/snoe/clojure-lsp/releases/download/release-${version}/${pname}";
|
|
sha256 = "0fxplldpxslm7f5xxazkl09gsj0ysppaal72hmlqbdj6rbgxlrnk";
|
|
};
|
|
|
|
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;
|
|
};
|
|
|
|
}
|