From 3a41534cbdeb9f7ed78d4593aec18bab6f38d8ea Mon Sep 17 00:00:00 2001 From: Justin Bedo Date: Wed, 25 Feb 2026 08:05:00 +1100 Subject: [PATCH] R: fix cairo linking on darwin --- pkgs/applications/science/math/R/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/applications/science/math/R/default.nix b/pkgs/applications/science/math/R/default.nix index 0af9390e8c3b..eecde9e47cab 100644 --- a/pkgs/applications/science/math/R/default.nix +++ b/pkgs/applications/science/math/R/default.nix @@ -157,6 +157,7 @@ stdenv.mkDerivation (finalAttrs: { + lib.optionalString stdenv.hostPlatform.isDarwin '' --disable-R-framework --without-x + --without-static-cairo OBJC="clang" CPPFLAGS="-isystem ${lib.getInclude stdenv.cc.libcxx}/include/c++/v1" LDFLAGS="-L${lib.getLib stdenv.cc.libcxx}/lib"