From 0c8f128cfffef0af8d2d552aff72424f727fefb4 Mon Sep 17 00:00:00 2001 From: FliegendeWurst Date: Wed, 8 Jan 2025 12:32:19 +0100 Subject: [PATCH] asymptote: fix Darwin build --- pkgs/tools/graphics/asymptote/default.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pkgs/tools/graphics/asymptote/default.nix b/pkgs/tools/graphics/asymptote/default.nix index 56e60edf77e8..5caee29bf15d 100644 --- a/pkgs/tools/graphics/asymptote/default.nix +++ b/pkgs/tools/graphics/asymptote/default.nix @@ -53,7 +53,7 @@ stdenv.mkDerivation (finalAttrs: { }; # https://github.com/vectorgraphics/asymptote/issues/513 - postConfigure = '' + postConfigure = lib.optionalString (stdenv.hostPlatform.isLinux) '' substituteInPlace Makefile \ --replace-fail 'glew.o -lGLX' 'glew.o' ''; @@ -166,10 +166,7 @@ stdenv.mkDerivation (finalAttrs: { ''; # do not use bundled libgc.so - configureFlags = - [ "--enable-gc=system" ] - # TODO add open_memstream to enable XDR/V3D on Darwin (requires memstream or >=10.13 Apple SDK) - ++ lib.optional stdenv.hostPlatform.isDarwin "--enable-xdr=no"; + configureFlags = [ "--enable-gc=system" ]; env.NIX_CFLAGS_COMPILE = "-I${boehmgc.dev}/include/gc";