lol

nil: unstable-2022-09-19 -> 2022-09-26

The date string is the official release name. It does not satisfy
"a package is not a release but a commit from a repository".
We could remove the `unstable` prefix.

authored by

oxalica and committed by
Matthieu Coudron
36f373dd 241f818f

+16 -11
+16 -11
pkgs/development/tools/nil/default.nix
··· 1 - { lib, rustPlatform, fetchFromGitHub }: 2 - 3 - let 4 - date = "2022-09-19"; 5 - in 1 + { lib, rustPlatform, fetchFromGitHub, nix, nix-update-script }: 6 2 7 3 rustPlatform.buildRustPackage rec { 8 4 pname = "nil"; 9 - version = "unstable-${date}"; 5 + version = "2022-09-26"; 10 6 11 7 src = fetchFromGitHub { 12 8 owner = "oxalica"; 13 9 repo = pname; 14 - rev = date; 15 - sha256 = "sha256-WdBRfp0shz6Xhwx0fEUQwROK52XNDTkmhC2xkdT+INA="; 10 + rev = version; 11 + hash = "sha256-2bcAXcJiFV+xKSIy3oD2/TkijV4302jAtTF3xtHiOhU="; 16 12 }; 17 13 18 - cargoSha256 = "sha256-J1CRe5xPl428mwOO4kDxLyPBc0mtzl3iU4mUqW5d4+E="; 14 + cargoHash = "sha256-RL9n2kfWPpu17qudqSx5DkZbgxqVCf2IRBu/koCAqFA="; 15 + 16 + CFG_DATE = version; 17 + CFG_REV = "release"; 18 + 19 + nativeBuildInputs = [ 20 + (lib.getBin nix) 21 + ]; 19 22 20 - CFG_DATE = date; 23 + passthru.updateScript = nix-update-script { 24 + attrPath = pname; 25 + }; 21 26 22 27 meta = with lib; { 23 - description = "A language server for Nix Expression Language"; 28 + description = "Yet another language server for Nix"; 24 29 homepage = "https://github.com/oxalica/nil"; 25 30 license = with licenses; [ mit asl20 ]; 26 31 maintainers = with maintainers; [ figsoda oxalica ];