Commit 92c64b53 authored by Dietrich Daroch's avatar Dietrich Daroch
Browse files

ron-lsp: init at 0.1.1

parent ec62a968
Loading
Loading
Loading
Loading
+37 −0
Original line number Diff line number Diff line
{
  lib,
  rustPlatform,
  fetchFromGitHub,
  nix-update-script,
}:

rustPlatform.buildRustPackage (finalAttrs: {
  pname = "ron-lsp";
  version = "0.1.1";

  src = fetchFromGitHub {
    owner = "jasonjmcghee";
    repo = "ron-lsp";
    tag = "v${finalAttrs.version}";
    hash = "sha256-c+cJrXINuoK+NR1rMSrOeZqZzrEcg/brSTKSTu5mNr4=";
  };

  cargoHash = "sha256-eEoxgnfc9s59b0SNozEIj/1wHv+OWDmd4bniBbGsgSQ=";

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "RON, Rusty Object Notation, Language Server";
    longDescription = ''
      An LSP and CLI for RON files that provides autocomplete,
      diagnostics, go to definition, code actions, and hover support
      based on Rust type annotations
    '';
    homepage = "https://github.com/jasonjmcghee/ron-lsp";
    license = with lib.licenses; [ mit ];
    maintainers = with lib.maintainers; [
      Dietr1ch
    ];
    mainProgram = "ron-lsp";
  };
})