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";
version = "2022-11-15";
2022-09-10 01:13:24 +00:00
src = fetchFromGitHub {
owner = "oxalica";
repo = pname;
rev = version;
hash = "sha256-KzQmGCEaOACOqaE1LsVZsqn18XpjlUbGWztDEI+o++w=";
2022-09-10 01:13:24 +00:00
};
cargoHash = "sha256-t5HfL7DKMcWJGod6x30NoHYYlAza++fEdEVvfvFWems=";
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 ];
};
}