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.
This commit is contained in:
oxalica 2022-09-26 16:47:24 +08:00 committed by Matthieu Coudron
parent 241f818f0e
commit 36f373ddca

View File

@ -1,26 +1,31 @@
{ lib, rustPlatform, fetchFromGitHub }: { lib, rustPlatform, fetchFromGitHub, nix, nix-update-script }:
let
date = "2022-09-19";
in
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "nil"; pname = "nil";
version = "unstable-${date}"; version = "2022-09-26";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "oxalica"; owner = "oxalica";
repo = pname; repo = pname;
rev = date; rev = version;
sha256 = "sha256-WdBRfp0shz6Xhwx0fEUQwROK52XNDTkmhC2xkdT+INA="; hash = "sha256-2bcAXcJiFV+xKSIy3oD2/TkijV4302jAtTF3xtHiOhU=";
}; };
cargoSha256 = "sha256-J1CRe5xPl428mwOO4kDxLyPBc0mtzl3iU4mUqW5d4+E="; cargoHash = "sha256-RL9n2kfWPpu17qudqSx5DkZbgxqVCf2IRBu/koCAqFA=";
CFG_DATE = date; CFG_DATE = version;
CFG_REV = "release";
nativeBuildInputs = [
(lib.getBin nix)
];
passthru.updateScript = nix-update-script {
attrPath = pname;
};
meta = with lib; { meta = with lib; {
description = "A language server for Nix Expression Language"; description = "Yet another language server for Nix";
homepage = "https://github.com/oxalica/nil"; homepage = "https://github.com/oxalica/nil";
license = with licenses; [ mit asl20 ]; license = with licenses; [ mit asl20 ];
maintainers = with maintainers; [ figsoda oxalica ]; maintainers = with maintainers; [ figsoda oxalica ];