0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

gawk: fix build on darwin (#401467)

This commit is contained in:
Emily 2025-04-25 15:20:01 +01:00 committed by GitHub
commit ee8311b13a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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"
];