From c2de1554f05b96eb27d8cc84345313420205de9b Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Sun, 6 Apr 2025 18:17:21 -0400 Subject: [PATCH] SDL_ttf: fix build on darwin Without it, the build failed with: Undefined symbols for architecture arm64: "_iconv", referenced from: _SDL_main in showfont.o "_iconv_close", referenced from: _SDL_main in showfont.o "_iconv_open", referenced from: _SDL_main in showfont.o Signed-off-by: Ihar Hrachyshka --- pkgs/by-name/sd/SDL_ttf/package.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/by-name/sd/SDL_ttf/package.nix b/pkgs/by-name/sd/SDL_ttf/package.nix index dbbb1fff2b71..d6f12b8287d9 100644 --- a/pkgs/by-name/sd/SDL_ttf/package.nix +++ b/pkgs/by-name/sd/SDL_ttf/package.nix @@ -33,6 +33,8 @@ stdenv.mkDerivation (finalAttrs: { (lib.enableFeature enableSdltest "sdltest") ]; + env.NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-liconv"; + strictDeps = true; passthru.updateScript = unstableGitUpdater {