nixpkgs/pkgs/development/tools/nil/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
779 B
Nix
Raw Normal View History

{ lib, rustPlatform, fetchFromGitHub, nix, nix-update-script }:
2022-09-10 01:13:24 +00:00
rustPlatform.buildRustPackage rec {
pname = "nil";
2022-10-03 23:19:01 +00:00
version = "2022-10-03";
2022-09-10 01:13:24 +00:00
src = fetchFromGitHub {
owner = "oxalica";
repo = pname;
rev = version;
2022-10-03 23:19:01 +00:00
hash = "sha256-Oo0y/333YyeW9zeYQyiUUay7q7GK/Uu/FdEa6+5c4Pk=";
2022-09-10 01:13:24 +00:00
};
2022-10-03 23:19:01 +00:00
cargoHash = "sha256-z7wjap7IL2OTd2wEUB6EbSbP71dZiqbKDmJ7oUjVi0U=";
CFG_DATE = version;
CFG_REV = "release";
2022-09-10 01:13: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; {
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 ];
};
}