gawk: fix build on darwin

This commit is contained in:
0x4A6F
2025-04-24 16:48:47 +02:00
parent b0e88f536e
commit 8952d95834
+5
View File
@@ -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"
];