nixpkgs/pkgs/development/tools/misc/clojure-lsp/default.nix

31 lines
799 B
Nix
Raw Normal View History

{ stdenv, fetchurl, jre }:
stdenv.mkDerivation rec {
pname = "clojure-lsp";
version = "20201009T224414";
src = fetchurl {
url = "https://github.com/snoe/clojure-lsp/releases/download/release-${version}/${pname}";
sha256 = "1az87b4cq6yyibs4knd0ywd0qfgmfzai4bqry4b7h2ycnfhfxdpa";
};
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
'';
2020-04-01 12:16:23 +00:00
# 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;
};
}