diff options
author | Robert Scott <code@humanleg.org.uk> | 2022-12-05 00:46:24 +0000 |
---|---|---|
committer | Robert Scott <code@humanleg.org.uk> | 2022-12-05 00:46:24 +0000 |
commit | c0e332492fdbfd81a220d2755ba0ab67542e96b2 (patch) | |
tree | be6944ba42c7499bb7f4cd6a70767fb4c7477faf /pkgs/development/libraries/libredwg/default.nix | |
parent | a4966eecb99e8f732fe91aecc1d991ad16e5e41a (diff) |
python3Packages.libredwg: fix build on darwin
Diffstat (limited to 'pkgs/development/libraries/libredwg/default.nix')
-rw-r--r-- | pkgs/development/libraries/libredwg/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libredwg/default.nix b/pkgs/development/libraries/libredwg/default.nix index e21e43caa920d..a3b43e9377e1f 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; |