mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 15:13:46 +00:00
32 lines
880 B
Nix
32 lines
880 B
Nix
{ lib, stdenv, fetchurl, jre, makeWrapper }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "clojure-lsp";
|
|
version = "2021.01.20-01.39.32";
|
|
|
|
src = fetchurl {
|
|
url = "https://github.com/clojure-lsp/clojure-lsp/releases/download/${version}/${pname}.jar";
|
|
sha256 = "sha256-DqvAIM5YHtcUNZHoH+fcZym6EaPX5a/vgphTFfTO6bU=";
|
|
};
|
|
|
|
dontUnpack = true;
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
install -Dm644 $src $out/share/java/${pname}.jar
|
|
makeWrapper ${jre}/bin/java $out/bin/${pname} \
|
|
--add-flags "-Xmx2g" \
|
|
--add-flags "-server" \
|
|
--add-flags "-jar $out/share/java/${pname}.jar"
|
|
'';
|
|
|
|
meta = with 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;
|
|
};
|
|
}
|