4d5a95770c
GitOrigin-RevId: 3c5319ad3aa51551182ac82ea17ab1c6b0f0df89
36 lines
935 B
Nix
36 lines
935 B
Nix
{ lib, rustPlatform, fetchFromGitHub, nix, nix-update-script }:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "nil";
|
|
version = "2023-03-01";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "oxalica";
|
|
repo = pname;
|
|
rev = version;
|
|
hash = "sha256-HGd/TV8ZHVAVBx+ndrxAfS/Nz+VHOQjNWjtKkkgYkqA=";
|
|
};
|
|
|
|
cargoHash = "sha256-A6Go1OYAaoDvQtAcK5BL5Tz00iLPOft0VLH6usWtb9g=";
|
|
|
|
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 ];
|
|
};
|
|
}
|