2022-09-30 11:47:45 +00:00
|
|
|
{ lib, rustPlatform, fetchFromGitHub, nix, nix-update-script }:
|
2022-09-11 15:47:08 +00:00
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "nil";
|
2022-12-02 08:20:57 +00:00
|
|
|
version = "2022-12-01";
|
2022-09-11 15:47:08 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "oxalica";
|
|
|
|
repo = pname;
|
2022-09-30 11:47:45 +00:00
|
|
|
rev = version;
|
2022-12-02 08:20:57 +00:00
|
|
|
hash = "sha256-E/QGmoL7Q3GDR2/I5o2CAMHMcmPQEJAySke1s+nOaho=";
|
2022-09-11 15:47:08 +00:00
|
|
|
};
|
|
|
|
|
2022-12-02 08:20:57 +00:00
|
|
|
cargoHash = "sha256-T3i86L6cF6uFbSs7xtKHGzB6XrE9jn2RZghxFzDleXU=";
|
2022-09-30 11:47:45 +00:00
|
|
|
|
|
|
|
CFG_DATE = version;
|
|
|
|
CFG_REV = "release";
|
2022-09-11 15:47:08 +00:00
|
|
|
|
2022-09-30 11:47:45 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
(lib.getBin nix)
|
|
|
|
];
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
passthru.updateScript = nix-update-script { };
|
2022-09-11 15:47:08 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-09-30 11:47:45 +00:00
|
|
|
description = "Yet another language server for Nix";
|
2022-09-11 15:47:08 +00:00
|
|
|
homepage = "https://github.com/oxalica/nil";
|
|
|
|
license = with licenses; [ mit asl20 ];
|
|
|
|
maintainers = with maintainers; [ figsoda oxalica ];
|
|
|
|
};
|
|
|
|
}
|