nixpkgs/pkgs/development/tools/nil/default.nix
2022-10-03 19:19:01 -04:00

34 lines
779 B
Nix

{ lib, rustPlatform, fetchFromGitHub, nix, nix-update-script }:
rustPlatform.buildRustPackage rec {
pname = "nil";
version = "2022-10-03";
src = fetchFromGitHub {
owner = "oxalica";
repo = pname;
rev = version;
hash = "sha256-Oo0y/333YyeW9zeYQyiUUay7q7GK/Uu/FdEa6+5c4Pk=";
};
cargoHash = "sha256-z7wjap7IL2OTd2wEUB6EbSbP71dZiqbKDmJ7oUjVi0U=";
CFG_DATE = version;
CFG_REV = "release";
nativeBuildInputs = [
(lib.getBin nix)
];
passthru.updateScript = nix-update-script {
attrPath = pname;
};
meta = with lib; {
description = "Yet another language server for Nix";
homepage = "https://github.com/oxalica/nil";
license = with licenses; [ mit asl20 ];
maintainers = with maintainers; [ figsoda oxalica ];
};
}