From 51007d534f0b124109f01bb6389abdad243dc815 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Sat, 9 Dec 2023 20:50:42 +0100 Subject: fnc: fix build on x86_64-darwin --- pkgs/applications/version-management/fnc/default.nix | 3 +++ 1 file changed, 3 insertions(+) (limited to 'pkgs/applications/version-management/fnc') diff --git a/pkgs/applications/version-management/fnc/default.nix b/pkgs/applications/version-management/fnc/default.nix index 1ab1d3b84ae21..e07b538544002 100644 --- a/pkgs/applications/version-management/fnc/default.nix +++ b/pkgs/applications/version-management/fnc/default.nix @@ -16,6 +16,9 @@ stdenv.mkDerivation (finalAttrs: { env.NIX_CFLAGS_COMPILE = toString (lib.optionals stdenv.cc.isGNU [ # Needed with GCC 12 "-Wno-error=maybe-uninitialized" + ] ++ lib.optionals stdenv.isDarwin [ + # error: 'strtonum' is only available on macOS 11.0 or newer + "-Wno-error=unguarded-availability-new" ]); preInstall = '' -- cgit 1.4.1