sacc: fix Darwin build

CFLAGS is ignored in this case leading to failed build on Darwin. The change uses OSCFLAGS which is specifically used to pass OS-specific CFLAGS is this project, without overwriting the general CFLAGS specified in config.mk.
This commit is contained in:
exit-b 2024-11-22 09:50:54 +01:00
parent 444cd38396
commit fbf13b57e0

View File

@ -15,8 +15,8 @@ stdenv.mkDerivation rec {
buildInputs = [ ncurses libressl ];
CFLAGS = lib.optionals stdenv.hostPlatform.isDarwin [
"-D_DARWIN_C_SOURCE"
makeFlags = lib.optionals stdenv.hostPlatform.isDarwin [
"OSCFLAGS=-D_DARWIN_C_SOURCE"
];
postPatch = ''