diff --git a/pkgs/by-name/ro/ron-lsp/package.nix b/pkgs/by-name/ro/ron-lsp/package.nix new file mode 100644 index 000000000000..ca2ad1d863db --- /dev/null +++ b/pkgs/by-name/ro/ron-lsp/package.nix @@ -0,0 +1,37 @@ +{ + 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"; + }; +})