From e6d8df74a92836e7e0e833df3e81f125c2a3746c Mon Sep 17 00:00:00 2001 From: Weijia Wang Date: Tue, 14 May 2024 00:33:39 +0200 Subject: libubox: fix build on x86_64-darwin --- pkgs/development/libraries/libubox/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/libraries/libubox/default.nix b/pkgs/development/libraries/libubox/default.nix index 09837cd0c1d8..e48748308bb2 100644 --- a/pkgs/development/libraries/libubox/default.nix +++ b/pkgs/development/libraries/libubox/default.nix @@ -22,6 +22,10 @@ stdenv.mkDerivation { done ''; + env.NIX_CFLAGS_COMPILE = toString (lib.optionals (stdenv.isDarwin && stdenv.isx86_64) [ + "-Wno-error=gnu-folding-constant" + ]); + meta = with lib; { description = "C utility functions for OpenWrt"; homepage = "https://git.openwrt.org/?p=project/libubox.git;a=summary"; -- cgit 1.4.1