summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobert Scott <code@humanleg.org.uk>2022-12-05 00:46:24 +0000
committerRobert Scott <code@humanleg.org.uk>2022-12-05 00:46:24 +0000
commitc0e332492fdbfd81a220d2755ba0ab67542e96b2 (patch)
treebe6944ba42c7499bb7f4cd6a70767fb4c7477faf
parenta4966eecb99e8f732fe91aecc1d991ad16e5e41a (diff)
downloadnixpkgs-c0e332492fdbfd81a220d2755ba0ab67542e96b2.tar
nixpkgs-c0e332492fdbfd81a220d2755ba0ab67542e96b2.tar.gz
nixpkgs-c0e332492fdbfd81a220d2755ba0ab67542e96b2.tar.bz2
nixpkgs-c0e332492fdbfd81a220d2755ba0ab67542e96b2.tar.lz
nixpkgs-c0e332492fdbfd81a220d2755ba0ab67542e96b2.tar.xz
nixpkgs-c0e332492fdbfd81a220d2755ba0ab67542e96b2.tar.zst
nixpkgs-c0e332492fdbfd81a220d2755ba0ab67542e96b2.zip
python3Packages.libredwg: fix build on darwin
-rw-r--r--pkgs/development/libraries/libredwg/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libredwg/default.nix b/pkgs/development/libraries/libredwg/default.nix
index e21e43caa92..a3b43e9377e 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;