From c4318f506329bad9027a3a7a8ac7c1a644de2fc1 Mon Sep 17 00:00:00 2001 From: Tristan Ross Date: Wed, 25 Feb 2026 18:14:30 -0800 Subject: [PATCH] freetype: fix non-windows llvm bintools builds --- pkgs/by-name/fr/freetype/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/fr/freetype/package.nix b/pkgs/by-name/fr/freetype/package.nix index 3d9ebe3a02af..d9c4e6d121a9 100644 --- a/pkgs/by-name/fr/freetype/package.nix +++ b/pkgs/by-name/fr/freetype/package.nix @@ -90,6 +90,10 @@ stdenv.mkDerivation (finalAttrs: { CFLAGS = lib.optionalString stdenv.hostPlatform.isAarch32 "-std=gnu99" + lib.optionalString stdenv.hostPlatform.is32bit " -D_FILE_OFFSET_BITS=64"; + } + // lib.optionalAttrs (!stdenv.hostPlatform.isWindows && stdenv.cc.bintools.isLLVM) { + # Needs to be unset when using LLVM or else it tries to include Windows headers on Linux + RC = ""; }; enableParallelBuilding = true;