boost191: init at 1.91.0

This commit is contained in:
Guilhem Saurel 2026-05-05 11:25:50 +02:00
commit 52a17d7994
4 changed files with 31 additions and 1 deletions

View file

@ -35,7 +35,9 @@ stdenv.mkDerivation {
patches =
useBoost.boostBuildPatches or [ ]
++ lib.optional (
useBoost ? version && lib.versionAtLeast useBoost.version "1.81"
useBoost ? version
&& lib.versionAtLeast useBoost.version "1.81"
&& lib.versionOlder useBoost.version "1.88"
) ./fix-clang-target.patch;
postPatch =

View file

@ -0,0 +1,26 @@
{
lib,
callPackage,
fetchurl,
...
}@args:
callPackage ./generic.nix (
args
// rec {
version = "1.91.0";
src =
let
underVersion = lib.replaceString "." "_" version;
in
fetchurl {
urls = [
"https://archives.boost.io/release/${version}/source/boost_${underVersion}.tar.bz2"
# "mirror://sourceforge/boost/boost_${underVersion}.tar.bz2" 1.91.0.beta1 is available, but not 1.91.0
];
# SHA256 from https://www.boost.org/releases/1.91.0/
sha256 = "de5e6b0e4913395c6bdfa90537febd9028ea4c0735d2cdb0cd9b45d5f51264f5";
};
}
)

View file

@ -31,4 +31,5 @@ in
boost188 = makeBoost ./1.88.nix;
boost189 = makeBoost ./1.89.nix;
boost190 = makeBoost ./1.90.nix;
boost191 = makeBoost ./1.91.nix;
}

View file

@ -6023,6 +6023,7 @@ with pkgs;
boost188
boost189
boost190
boost191
;
boost = boost189;