depot/third_party/nixpkgs/pkgs/development/tools/language-servers/nil/default.nix
Default email 4bac34ead1 Project import generated by Copybara.
GitOrigin-RevId: 724bfc0892363087709bd3a5a1666296759154b1
2023-02-09 12:40:11 +01:00

36 lines
935 B
Nix

{ lib, rustPlatform, fetchFromGitHub, nix, nix-update-script }:
rustPlatform.buildRustPackage rec {
pname = "nil";
version = "2023-02-03";
src = fetchFromGitHub {
owner = "oxalica";
repo = pname;
rev = version;
hash = "sha256-d53add4Cuh0ik8YYncdoqqR6irQbnh/X4vg12TQ/FEQ=";
};
cargoHash = "sha256-k4hw+kH447uqsCASuaZxRx2xmMkmn9LM5sHYL2AJN9k=";
CFG_RELEASE = version;
nativeBuildInputs = [
(lib.getBin nix)
];
# might be related to https://github.com/NixOS/nix/issues/5884
preBuild = ''
export NIX_STATE_DIR=$(mktemp -d)
'';
passthru.updateScript = nix-update-script { };
meta = with lib; {
description = "Yet another language server for Nix";
homepage = "https://github.com/oxalica/nil";
changelog = "https://github.com/oxalica/nil/releases/tag/${version}";
license = with licenses; [ mit asl20 ];
maintainers = with maintainers; [ figsoda oxalica ];
};
}