From 62d3c4fb592bf4c07db38a1183dcefa6fd273213 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliv=C3=A9r=20Falvai?= Date: Sun, 10 Nov 2024 19:50:17 +0100 Subject: [PATCH] netsurf.browser: fix darwin builds https://hydra.nixos.org/build/276866240 --- pkgs/applications/networking/browsers/netsurf/browser.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/applications/networking/browsers/netsurf/browser.nix b/pkgs/applications/networking/browsers/netsurf/browser.nix index 2397145a21c4..760bd691dfb8 100644 --- a/pkgs/applications/networking/browsers/netsurf/browser.nix +++ b/pkgs/applications/networking/browsers/netsurf/browser.nix @@ -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