From 8952d958344436e4a2a215796bc46cb1b72e160a Mon Sep 17 00:00:00 2001 From: 0x4A6F <0x4A6F@users.noreply.github.com> Date: Thu, 24 Apr 2025 13:20:22 +0200 Subject: [PATCH] gawk: fix build on darwin --- pkgs/tools/text/gawk/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/tools/text/gawk/default.nix b/pkgs/tools/text/gawk/default.nix index f5647f303e12..0cf362487918 100644 --- a/pkgs/tools/text/gawk/default.nix +++ b/pkgs/tools/text/gawk/default.nix @@ -72,6 +72,11 @@ stdenv.mkDerivation rec { (if interactive then "--with-readline=${readline.dev}" else "--without-readline") ]; + env = lib.optionalAttrs stdenv.hostPlatform.isDarwin { + # TODO: figure out a better way to unbreak _NSGetExecutablePath invocations + NIX_CFLAGS_COMPILE = "-Wno-implicit-function-declaration"; + }; + makeFlags = [ "AR=${stdenv.cc.targetPrefix}ar" ];