mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 13:30:36 +00:00
Extract version, source, and Cargo definitions consistently for 2.94, 2.95, and the development snapshot. Keep scope construction, patches, and aliases in default.nix. Isolate the 2.95 updater in its release file so replacing a shared Cargo hash cannot modify the development snapshot. Restrict automated updates to the 2.95 release series. Assisted-by: Codex (gpt-5.6-sol) Assisted-by: Codex (GPT-6)
22 lines
509 B
Nix
22 lines
509 B
Nix
{
|
|
fetchFromGitea,
|
|
rustPlatform,
|
|
}:
|
|
rec {
|
|
version = "2.96.0-pre-20260408_${builtins.substring 0 12 src.rev}";
|
|
|
|
src = fetchFromGitea {
|
|
domain = "git.lix.systems";
|
|
owner = "lix-project";
|
|
repo = "lix";
|
|
rev = "bc9fb560ac2d36cd317a856ee96785ea2055fbff";
|
|
hash = "sha256-bONRPjhk5OZdnkQZexZNJzlvwIPg31Gy7fNiwGoX3BQ=";
|
|
};
|
|
|
|
cargoDeps = rustPlatform.fetchCargoVendor {
|
|
name = "lix-${version}";
|
|
inherit src;
|
|
hash = "sha256-a5XtutX+NS4wOqxeqbscWZMs99teKick5+cQfbCRGxQ=";
|
|
};
|
|
}
|