botan3: 3.5.0 -> 3.6.1 (#352065)

This commit is contained in:
nikstur
2024-10-30 11:19:42 +01:00
committed by GitHub
+10 -3
View File
@@ -6,6 +6,7 @@
docutils,
bzip2,
zlib,
jitterentropy,
darwin,
static ? stdenv.hostPlatform.isStatic, # generates static libraries *only*
}:
@@ -56,7 +57,10 @@ let
CoreServices
Security
]
);
)
++ lib.optionals (lib.versionAtLeast version "3.6.0") [
jitterentropy
];
buildTargets =
[ "cli" ]
@@ -81,6 +85,9 @@ let
]
++ lib.optionals stdenv.hostPlatform.isAarch64 [
"--cpu=aarch64"
]
++ lib.optionals (lib.versionAtLeast version "3.6.0") [
"--enable-modules=jitter_rng"
];
configurePhase = ''
@@ -117,8 +124,8 @@ let
in
{
botan3 = common {
version = "3.5.0";
hash = "sha256-Z+ja4cokaNkN5OYByH1fMf9JKzjoq4vL0C3fcQTtip8=";
version = "3.6.1";
hash = "sha256-fLhXXYjSMsdxdHadf54ku0REQWBYWYbuvWbnScuakIk=";
# this patch fixes build errors on MacOS with SDK 10.12, recheck to remove this again
patches = lib.optionals stdenv.hostPlatform.isDarwin [ ./botan3-macos.patch ];
};