nixpkgs/pkgs/development/tools/rnix-lsp/default.nix
Maximilian Bosch 733886758e
rnix-lsp: 0.2.3 -> 0.2.4
ChangeLog: https://github.com/nix-community/rnix-lsp/blob/v0.2.4/CHANGELOG.md

Since the tests requiring the Nix CLI are temporarily disabled on Darwin
because invoking `nix --version` appears to cause sandboxing issues, I
removed `nix` from the `checkInputs` there. This should also fix the
build on Darwin as it's currently transitively broken because Nix 2.5
doesn't compile[1].

[1] https://hydra.nixos.org/build/165678217
2022-01-31 00:57:40 +01:00

23 lines
646 B
Nix

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