2022-02-10 20:34:41 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, rustPlatform, nix }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "rnix-lsp";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "0.2.5";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nix-community";
|
|
|
|
repo = "rnix-lsp";
|
|
|
|
rev = "v${version}";
|
2022-06-16 17:23:12 +00:00
|
|
|
sha256 = "sha256-WXpj2fgduYlF4t0QEvdfV1Eft8/nFXWF2zyEBKMUEIk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
cargoSha256 = "sha256-LfbmOhZJVthsLm8lnzHvEt7Vy27y4w4wpPfrf/s3s84=";
|
2021-09-23 15:35:13 +00:00
|
|
|
|
2022-02-10 20:34:41 +00:00
|
|
|
checkInputs = lib.optional (!stdenv.isDarwin) nix;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A work-in-progress language server for Nix, with syntax checking and basic completion";
|
|
|
|
license = licenses.mit;
|
2021-09-23 15:35:13 +00:00
|
|
|
maintainers = with maintainers; [ ma27 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|