From bf6d88bf0e33c058d2596e8671610ad2cf271d89 Mon Sep 17 00:00:00 2001 From: Xiangyan Sun Date: Thu, 9 Apr 2026 15:42:34 -0700 Subject: [PATCH] bip: fix build with gcc15 --- pkgs/by-name/bi/bip/package.nix | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/bi/bip/package.nix b/pkgs/by-name/bi/bip/package.nix index 1d4655cc83ab..a6844808867c 100644 --- a/pkgs/by-name/bi/bip/package.nix +++ b/pkgs/by-name/bi/bip/package.nix @@ -7,6 +7,7 @@ bison, flex, openssl, + versionCheckHook, }: stdenv.mkDerivation { @@ -27,9 +28,13 @@ stdenv.mkDerivation { postPatch = '' # Drop blanket -Werror to avoid build failure on fresh toolchains - # and libraries. Without the cnage build fails on gcc-13 and on + # and libraries. Without the change build fails on gcc-13 and on # openssl-3. substituteInPlace src/Makefile.am --replace-fail ' -Werror ' ' ' + # Fix incompatible function pointer type for cmp in list_t + # The cmp function pointer is declared as taking no arguments but is + # used with qsort-style callback signature (const void *, const void *) + substituteInPlace src/util.h --replace-fail 'int (*cmp)()' 'int (*cmp)(const void *, const void *)' ''; nativeBuildInputs = [ @@ -44,6 +49,10 @@ stdenv.mkDerivation { enableParallelBuilding = true; + nativeInstallCheckInputs = [ versionCheckHook ]; + versionCheckProgramArg = "-v"; + doInstallCheck = true; + meta = { description = "IRC proxy (bouncer)"; homepage = "http://bip.milkypond.org/";