nixpkgs/pkgs/development/tools/rnix-lsp/default.nix
Bernardo Meurer e6548105b7
rnix-lsp: use nix (2.4)
Follow-up to #144197 since nixUnstable is no longer needed for flake
support.
2021-11-09 11:35:43 -08:00

24 lines
610 B
Nix

{ lib, fetchFromGitHub, rustPlatform, nix }:
rustPlatform.buildRustPackage rec {
pname = "rnix-lsp";
version = "0.2.1";
src = fetchFromGitHub {
owner = "nix-community";
repo = "rnix-lsp";
rev = "v${version}";
sha256 = "sha256-54dtLkGAbQ4Sln/bs/sI0GaCbXyK8+vDD8QBgxaiCXg=";
};
cargoSha256 = "sha256-Tw05eOIMJj+zX0fqtn6wJwolKNkYqfVuo/WO/WvYu2k=";
checkInputs = [ nix ];
meta = with lib; {
description = "A work-in-progress language server for Nix, with syntax checking and basic completion";
license = licenses.mit;
maintainers = with maintainers; [ ma27 ];
};
}