gnat-bootstrap15: init at 15.2.0-1

This commit is contained in:
sempiternal-aurora 2026-05-02 17:29:12 +10:00
commit ff8210b83c
2 changed files with 42 additions and 24 deletions

View file

@ -33,23 +33,6 @@ stdenv.mkDerivation (
url = "https://github.com/alire-project/GNAT-FSF-builds/releases/download/gnat-${finalAttrs.version}/gnat-${stdenv.hostPlatform.system}-${finalAttrs.version}.tar.gz";
in
{
"12" = {
gccVersion = "12.1.0";
alireRevision = "2";
}
// {
x86_64-darwin = {
inherit url;
hash = "sha256-zrcVFvFZMlGUtkG0p1wST6kGInRI64Icdsvkcf25yVs=";
upstreamTriplet = "x86_64-apple-darwin19.6.0";
};
x86_64-linux = {
inherit url;
hash = "sha256-EPDPOOjWJnJsUM7GGxj20/PXumjfLoMIEFX1EDtvWVY=";
upstreamTriplet = "x86_64-pc-linux-gnu";
};
}
.${stdenv.hostPlatform.system} or throwUnsupportedSystem;
"13" = {
gccVersion = "13.2.0";
alireRevision = "2";
@ -99,6 +82,36 @@ stdenv.mkDerivation (
};
}
.${stdenv.hostPlatform.system} or throwUnsupportedSystem;
"15" = {
gccVersion = "15.2.0";
}
// {
x86_64-darwin = {
alireRevision = "1";
inherit url;
hash = "sha256-1YTqWsLBwNH/GBAtF5CL/YZHQvfE/3PE0LlLJ9HmjAg=";
upstreamTriplet = "x86_64-apple-darwin22.6.0";
};
x86_64-linux = {
alireRevision = "1";
inherit url;
hash = "sha256-b4hAg3ifoBRqgPxpfMYuOdunw7wzRTL/G5YGBO+im24=";
upstreamTriplet = "x86_64-pc-linux-gnu";
};
aarch64-linux = {
alireRevision = "1";
inherit url;
hash = "sha256-0V/VHqOSYQI6LmvpUIHy3zB6hI3dG0njOcDsrg8oZq8=";
upstreamTriplet = "aarch64-linux-gnu";
};
aarch64-darwin = {
alireRevision = "2-pre0";
url = "https://github.com/alire-project/GNAT-FSF-builds/releases/download/gnat-15.2.0-2-macos-pre0/gnat-${stdenv.hostPlatform.system}-${finalAttrs.version}.tar.gz";
hash = "sha256-4bFtsjixfXYc8wYOc+5iAbp1MmiIS1h1NcdKno2IdJg=";
upstreamTriplet = "aarch64-apple-darwin24.6.0";
};
}
.${stdenv.hostPlatform.system} or throwUnsupportedSystem;
};
inherit (versionMap.${majorVersion}) gccVersion alireRevision upstreamTriplet;
in
@ -146,13 +159,15 @@ stdenv.mkDerivation (
++
lib.optionals
(
lib.versionAtLeast majorVersion "14" && stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isLinux
(majorVersion == "14" && stdenv.hostPlatform.isAarch64 && stdenv.hostPlatform.isLinux)
|| (lib.versionAtLeast majorVersion "15" && stdenv.hostPlatform.isLinux)
)
[
# not sure why the bootstrap binaries link to zstd only on this architecture but they do
zstd
];
__structuredAttrs = true;
strictDeps = true;
# https://github.com/alire-project/GNAT-FSF-builds/issues/51
@ -245,8 +260,6 @@ stdenv.mkDerivation (
platforms = [
"x86_64-linux"
"x86_64-darwin"
]
++ lib.optionals (lib.versionAtLeast majorVersion "13") [
"aarch64-darwin"
]
++ lib.optionals (lib.versionAtLeast majorVersion "14") [

View file

@ -3535,7 +3535,7 @@ with pkgs;
# If we are cross-compiling GNAT, we may as well do the same.
gnat-bootstrap =
if stdenv.hostPlatform == stdenv.targetPlatform && stdenv.buildPlatform == stdenv.hostPlatform then
buildPackages.gnat-bootstrap14
buildPackages.gnat-bootstrap15
else
buildPackages.gnat15;
stdenv =
@ -3544,7 +3544,7 @@ with pkgs;
&& stdenv.buildPlatform == stdenv.hostPlatform
&& stdenv.buildPlatform.isDarwin
then
overrideCC gccStdenv gnat-bootstrap14
overrideCC gccStdenv gnat-bootstrap15
else
stdenv;
}
@ -3562,7 +3562,7 @@ with pkgs;
# If we are cross-compiling GNAT, we may as well do the same.
gnat-bootstrap =
if stdenv.hostPlatform == stdenv.targetPlatform && stdenv.buildPlatform == stdenv.hostPlatform then
buildPackages.gnat-bootstrap14
buildPackages.gnat-bootstrap15
else
buildPackages.gnat16;
stdenv =
@ -3571,7 +3571,7 @@ with pkgs;
&& stdenv.buildPlatform == stdenv.hostPlatform
&& stdenv.buildPlatform.isDarwin
then
overrideCC gccStdenv gnat-bootstrap14
overrideCC gccStdenv gnat-bootstrap15
else
stdenv;
}
@ -3588,6 +3588,11 @@ with pkgs;
isAlireGNAT = true;
};
gnat-bootstrap15 = wrapCCWith {
cc = callPackage ../development/compilers/gnat-bootstrap { majorVersion = "15"; };
isAlireGNAT = true;
};
gnat13Packages = recurseIntoAttrs (callPackage ./ada-packages.nix { gnat = buildPackages.gnat13; });
gnat14Packages = recurseIntoAttrs (callPackage ./ada-packages.nix { gnat = buildPackages.gnat14; });
gnat15Packages = recurseIntoAttrs (callPackage ./ada-packages.nix { gnat = buildPackages.gnat15; });