1 { lib, rustPlatform, fetchFromGitHub, nixVersions, nix-update-script }:
3 rustPlatform.buildRustPackage rec {
5 version = "2024-08-06";
7 src = fetchFromGitHub {
11 hash = "sha256-DqsN/VkYVr4M0PVRQKXPPOTaind5miYZURIYqM4MxYM=";
14 cargoHash = "sha256-E4wmVunaX5SeBlXaLEpzMZ+IY0YVeJ1NORPo9msHr6M=";
17 (lib.getBin nixVersions.latest)
20 env.CFG_RELEASE = version;
22 # might be related to https://github.com/NixOS/nix/issues/5884
24 export NIX_STATE_DIR=$(mktemp -d)
27 passthru.updateScript = nix-update-script { };
30 description = "Yet another language server for Nix";
31 homepage = "https://github.com/oxalica/nil";
32 changelog = "https://github.com/oxalica/nil/releases/tag/${version}";
33 license = with licenses; [ mit asl20 ];
34 maintainers = with maintainers; [ figsoda oxalica ];