2022-09-26 08:47:24 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, nix, nix-update-script }:
|
2022-09-10 01:13:24 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "nil";
|
2022-11-15 11:12:35 +00:00
|
|
|
version = "2022-11-15";
|
2022-09-10 01:13:24 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "oxalica";
|
|
|
|
repo = pname;
|
2022-09-26 08:47:24 +00:00
|
|
|
rev = version;
|
2022-11-15 11:12:35 +00:00
|
|
|
hash = "sha256-KzQmGCEaOACOqaE1LsVZsqn18XpjlUbGWztDEI+o++w=";
|
2022-09-10 01:13:24 +00:00
|
|
|
};
|
|
|
|
|
2022-11-15 11:12:35 +00:00
|
|
|
cargoHash = "sha256-t5HfL7DKMcWJGod6x30NoHYYlAza++fEdEVvfvFWems=";
|
2022-09-26 08:47:24 +00:00
|
|
|
|
|
|
|
CFG_DATE = version;
|
|
|
|
CFG_REV = "release";
|
2022-09-10 01:13:24 +00:00
|
|
|
|
2022-09-26 08:47:24 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
(lib.getBin nix)
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru.updateScript = nix-update-script {
|
|
|
|
attrPath = pname;
|
|
|
|
};
|
2022-09-10 01:13:24 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-09-26 08:47:24 +00:00
|
|
|
description = "Yet another language server for Nix";
|
2022-09-10 01:13:24 +00:00
|
|
|
homepage = "https://github.com/oxalica/nil";
|
|
|
|
license = with licenses; [ mit asl20 ];
|
|
|
|
maintainers = with maintainers; [ figsoda oxalica ];
|
|
|
|
};
|
|
|
|
}
|