From 7932637f5777d34e7b89e5e633afeb6ab0d7efe7 Mon Sep 17 00:00:00 2001 From: aleksana Date: Thu, 25 Dec 2025 14:03:25 +0800 Subject: [PATCH] libmcrypt: fix build with gcc 15 --- pkgs/by-name/li/libmcrypt/package.nix | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/pkgs/by-name/li/libmcrypt/package.nix b/pkgs/by-name/li/libmcrypt/package.nix index 31b8f5a9c4e9..59828384b855 100644 --- a/pkgs/by-name/li/libmcrypt/package.nix +++ b/pkgs/by-name/li/libmcrypt/package.nix @@ -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 =