2023-03-04 12:14:45 +00:00
|
|
|
{ lib, mkCoqDerivation, coq, serapi, makeWrapper, version ? null }:
|
|
|
|
|
|
|
|
mkCoqDerivation rec {
|
|
|
|
pname = "coq-lsp";
|
|
|
|
owner = "ejgallego";
|
|
|
|
namePrefix = [ ];
|
|
|
|
|
|
|
|
useDune = true;
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
release."0.1.8+8.16".sha256 = "sha256-dEEAK5IXGjHB8D/fYJRQG/oCotoXJuWLxXB0GQlY2eo=";
|
2024-06-20 14:57:18 +00:00
|
|
|
release."0.1.9+8.17".sha256 = "sha256-BCsVRKSE9txeKgDfTsu7hQ6MebC+dX2AAqDF9iL7bYE=";
|
|
|
|
release."0.1.9+8.18".sha256 = "sha256-elAXvkyqw/R/EziGn+QdPn42t5rqTVVW08BXGP3HimY=";
|
|
|
|
release."0.1.9+8.19".sha256 = "sha256-0bk0o25aYkrRf5zaWZnNJqqoBZ6u8nSV9QDIWCeFEco=";
|
2023-03-04 12:14:45 +00:00
|
|
|
|
|
|
|
inherit version;
|
|
|
|
defaultVersion = with lib.versions; lib.switch coq.coq-version [
|
2023-11-16 04:20:00 +00:00
|
|
|
{ case = isEq "8.16"; out = "0.1.8+8.16"; }
|
2024-06-20 14:57:18 +00:00
|
|
|
{ case = isEq "8.17"; out = "0.1.9+8.17"; }
|
|
|
|
{ case = isEq "8.18"; out = "0.1.9+8.18"; }
|
|
|
|
{ case = isEq "8.19"; out = "0.1.9+8.19"; }
|
2023-03-04 12:14:45 +00:00
|
|
|
] null;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
dune install ${pname} --prefix=$out
|
|
|
|
wrapProgram $out/bin/coq-lsp --prefix OCAMLPATH : $OCAMLPATH
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ serapi ]
|
|
|
|
++ (with coq.ocamlPackages; [ camlp-streams dune-build-info menhir uri yojson ]);
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Language Server Protocol and VS Code Extension for Coq";
|
|
|
|
homepage = "https://github.com/ejgallego/coq-lsp";
|
|
|
|
changelog = "https://github.com/ejgallego/coq-lsp/blob/${defaultVersion}/CHANGES.md";
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = with maintainers; [ alizter ];
|
2023-03-04 12:14:45 +00:00
|
|
|
license = licenses.lgpl21Only;
|
|
|
|
};
|
|
|
|
}
|