From c0e332492fdbfd81a220d2755ba0ab67542e96b2 Mon Sep 17 00:00:00 2001 From: Robert Scott Date: Mon, 5 Dec 2022 00:46:24 +0000 Subject: [PATCH] python3Packages.libredwg: fix build on darwin --- pkgs/development/libraries/libredwg/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/libraries/libredwg/default.nix b/pkgs/development/libraries/libredwg/default.nix index e21e43caa920..a3b43e9377e1 100644 --- a/pkgs/development/libraries/libredwg/default.nix +++ b/pkgs/development/libraries/libredwg/default.nix @@ -36,6 +36,11 @@ stdenv.mkDerivation rec { cp ${printVersion} build-aux/git-version-gen ''; + preConfigure = lib.optionalString (stdenv.isDarwin && enablePython) '' + # prevent configure picking up stack_size from distutils.sysconfig + export PYTHON_EXTRA_LDFLAGS=" " + ''; + nativeBuildInputs = [ autoreconfHook pkg-config texinfo ] ++ lib.optional enablePython swig;