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 03:13:24 +02:00
rustPlatform.buildRustPackage rec {
pname = "nil";
version = "2022-12-01";
2022-09-10 03:13:24 +02:00
src = fetchFromGitHub {
owner = "oxalica";
repo = pname;
rev = version;
hash = "sha256-E/QGmoL7Q3GDR2/I5o2CAMHMcmPQEJAySke1s+nOaho=";
2022-09-10 03:13:24 +02:00
};
cargoHash = "sha256-T3i86L6cF6uFbSs7xtKHGzB6XrE9jn2RZghxFzDleXU=";
CFG_DATE = version;
CFG_REV = "release";
2022-09-10 03:13:24 +02:00
nativeBuildInputs = [
(lib.getBin nix)
];
passthru.updateScript = nix-update-script {
attrPath = pname;
};
2022-09-10 03:13:24 +02:00
meta = with lib; {
description = "Yet another language server for Nix";
2022-09-10 03:13:24 +02:00
homepage = "https://github.com/oxalica/nil";
license = with licenses; [ mit asl20 ];
maintainers = with maintainers; [ figsoda oxalica ];
};
}