nixpkgs/pkgs/development/tools/rnix-lsp/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
646 B
Nix
Raw Normal View History

{ stdenv, lib, fetchFromGitHub, rustPlatform, nix }:
2020-01-12 10:41:20 +00:00
rustPlatform.buildRustPackage rec {
pname = "rnix-lsp";
version = "0.2.4";
2020-01-12 10:41:20 +00:00
src = fetchFromGitHub {
owner = "nix-community";
repo = "rnix-lsp";
rev = "v${version}";
sha256 = "sha256-MfD07ugYYbcRaNoLxOcH9+SPbRewNxbHJA5blCSb4EM=";
2020-01-12 10:41:20 +00:00
};
cargoSha256 = "sha256-23TJrJyfCuoOOOjZeWQnF/Ac0Xv2k6tZduuzapKvsgg=";
checkInputs = lib.optional (!stdenv.isDarwin) nix;
2020-01-12 10:41:20 +00:00
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 ];
2020-01-12 10:41:20 +00:00
};
}