libmcrypt: fix build with gcc 15 (#474016)

This commit is contained in:
Sizhe Zhao
2025-12-25 06:44:01 +00:00
committed by GitHub
+9
View File
@@ -2,6 +2,7 @@
lib,
stdenv,
fetchurl,
fetchpatch,
cctools,
disablePosixThreads ? false,
}:
@@ -15,6 +16,14 @@ stdenv.mkDerivation (finalAttrs: {
hash = "sha256-5OtsB0u6sWisR7lHwZX/jO+dUaIRzdGMqcnvNNJ6Nz4=";
};
patches = [
# Fix build with GCC 15
(fetchpatch {
url = "https://gitlab.alpinelinux.org/alpine/aports/-/raw/v20251224/community/libmcrypt/c23.patch";
hash = "sha256-yTBCi5f0s8SiM5aq8X135E2Wwl7S2sO1tsVDthCdAMg=";
})
];
buildInputs = lib.optional stdenv.hostPlatform.isDarwin cctools;
configureFlags =