From 07db3a1fee0d763bb36475d7a5bd263ad1d4ea0e Mon Sep 17 00:00:00 2001 From: Diego Strebel Date: Sun, 15 Feb 2026 00:58:02 +0100 Subject: [PATCH] gerbil: fix build --- pkgs/development/compilers/gerbil/build.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/compilers/gerbil/build.nix b/pkgs/development/compilers/gerbil/build.nix index da91532cc12f..59831e36714c 100644 --- a/pkgs/development/compilers/gerbil/build.nix +++ b/pkgs/development/compilers/gerbil/build.nix @@ -74,6 +74,10 @@ stdenv.mkDerivation rec { "--enable-march=" # Avoid non-portable invalid instructions. Use =native if local build only. ]; + env.NIX_CFLAGS_COMPILE = + # Required for legacy C code in source + "-Wno-error=implicit-function-declaration"; + configurePhase = '' export CC=${gccStdenv.cc}/bin/${gccStdenv.cc.targetPrefix}gcc \ CXX=${gccStdenv.cc}/bin/${gccStdenv.cc.targetPrefix}g++ \