Merge pull request #289722 from trofi/bip-fix-gcc-13-build

bip: drop blanket -Werror
This commit is contained in:
Weijia Wang
2024-02-24 03:12:01 +01:00
committed by GitHub
@@ -1,9 +1,8 @@
{ lib
, stdenv
, fetchurl
, autoreconfHook
, pkg-config
, autoconf
, automake
, bison
, flex
, openssl
@@ -21,12 +20,17 @@ stdenv.mkDerivation {
outputs = [ "out" "man" "doc" ];
nativeBuildInputs = [ pkg-config autoconf automake ];
postPatch = ''
# Drop blanket -Werror to avoid build failure on fresh toolchains
# and libraries. Without the cnage build fails on gcc-13 and on
# openssl-3.
substituteInPlace src/Makefile.am --replace-fail ' -Werror ' ' '
'';
nativeBuildInputs = [ autoreconfHook pkg-config ];
buildInputs = [ bison flex openssl ];
# FIXME: Openssl3 deprecated PEM_read_DHparams and DH_free
# https://projects.duckcorp.org/issues/780
env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations";
enableParallelBuilding = true;
meta = {
description = "An IRC proxy (bouncer)";