From aaff6cb108c1ea9d8368ca6c2db31248e7340d22 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Tue, 7 Jan 2025 19:14:07 +0100 Subject: [PATCH] cdb: fix -Werror messages Who enabled -Werror? I want to do bad things to them!! --- pkgs/development/tools/database/cdb/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/tools/database/cdb/default.nix b/pkgs/development/tools/database/cdb/default.nix index 3da8c8855bc3..50dfb0a89b2c 100644 --- a/pkgs/development/tools/database/cdb/default.nix +++ b/pkgs/development/tools/database/cdb/default.nix @@ -36,6 +36,11 @@ stdenv.mkDerivation { "out" ]; + env.NIX_CFLAGS_COMPILE = toString [ + "-Wno-error=implicit-int" + "-Wno-error=implicit-function-declaration" + ]; + postPatch = '' # A little patch, borrowed from Archlinux AUR, borrowed from Gentoo Portage sed -e 's/^extern int errno;$/#include /' -i error.h