netsurf.browser: fix darwin builds (#355038)

This commit is contained in:
Aleksana 2024-11-11 11:31:43 +08:00 committed by GitHub
commit e635cf8d9f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -109,6 +109,8 @@ stdenv.mkDerivation (finalAttrs: {
env.CFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-D_DARWIN_C_SOURCE";
env.NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-liconv";
patchPhase = lib.optionalString stdenv.cc.isClang ''
runHook prePatch