mirror of
https://github.com/CHN-beta/nixpkgs.git
synced 2026-01-12 02:40:31 +08:00
`gcc-14.3.0` will likely release around the end of April (https://gcc.gnu.org/develop.html) which is a bit late for nixos-25.05 release. We can update to `gcc-14.3.0` after a branch-off, but let's make the delca smaller by picking the current snapshot. While at it: - fix `flex` dependency propagation and use it for snapshots - fix `version` to always contain the base version as cc-wrapper constructs paths to libraries based in `version` attribute Co-authored-by: Pavol Rusnak <pavol@rusnak.io>
34 lines
1.0 KiB
Nix
34 lines
1.0 KiB
Nix
let
|
|
majorMinorToVersionMap = {
|
|
"14" = "14.2.1.20250322";
|
|
"13" = "13.3.0";
|
|
"12" = "12.4.0";
|
|
"11" = "11.5.0";
|
|
"10" = "10.5.0";
|
|
"9" = "9.5.0";
|
|
};
|
|
|
|
fromMajorMinor = majorMinorVersion: majorMinorToVersionMap."${majorMinorVersion}";
|
|
|
|
# TODO(amjoseph): convert older hashes to SRI form
|
|
srcHashForVersion =
|
|
version:
|
|
{
|
|
# 3 digits: releases (14.2.0)
|
|
# 4 digits: snapshots (14.2.1.20250322)
|
|
"14.2.1.20250322" = "sha256-I3ROhiU4jYaB2aci2Z3B/mvLLTjBBoCF1CL7uiHTmUM=";
|
|
"13.3.0" = "sha256-CEXpYhyVQ6E/SE6UWEpJ/8ASmXDpkUYkI1/B0GGgwIM=";
|
|
"12.4.0" = "sha256-cE9lJgTMvMsUvavzR4yVEciXiLEss7v/3tNzQZFqkXU=";
|
|
"11.5.0" = "sha256-puIYaOrVRc+H8MAfhCduS1KB1nIJhZHByJYkHwk2NHg=";
|
|
"10.5.0" = "sha256-JRCVQ/30bzl8NHtdi3osflaUpaUczkucbh6opxyjB8E=";
|
|
"9.5.0" = "13ygjmd938m0wmy946pxdhz9i1wq7z4w10l6pvidak0xxxj9yxi7";
|
|
}
|
|
."${version}";
|
|
|
|
in
|
|
{
|
|
inherit fromMajorMinor;
|
|
inherit srcHashForVersion;
|
|
allMajorVersions = builtins.attrNames majorMinorToVersionMap;
|
|
}
|