summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheodore Ni <3806110+tjni@users.noreply.github.com>2022-12-02 13:27:14 -0800
committerTheodore Ni <3806110+tjni@users.noreply.github.com>2022-12-04 10:37:33 -0800
commitea4957a848094ff8dbebb22663c71f21f3ccb5d9 (patch)
tree8e6fefb1862ac0ce3a3765e1577fd249623c1f98
parentpython310Packages.rapidfuzz: disable LTO to fix aarch64-darwin build (diff)
downloadnixpkgs-ea4957a848094ff8dbebb22663c71f21f3ccb5d9.tar.gz
python310Packages.rapidfuzz: add CMake flags to fix build on x86_64-darwin
(cherry picked from commit 0efb882d3f9bda5382110b6e5b59be14203fbb70)
-rw-r--r--pkgs/development/python-modules/rapidfuzz/default.nix2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/rapidfuzz/default.nix b/pkgs/development/python-modules/rapidfuzz/default.nix
index c5cc8ab925dc..519103fe6314 100644
--- a/pkgs/development/python-modules/rapidfuzz/default.nix
+++ b/pkgs/development/python-modules/rapidfuzz/default.nix
@@ -51,6 +51,8 @@ buildPythonPackage rec {
preBuild = ''
export RAPIDFUZZ_BUILD_EXTENSION=1
+ '' + lib.optionalString (stdenv.isDarwin && stdenv.isx86_64) ''
+ export CMAKE_ARGS="-DCMAKE_CXX_COMPILER_AR=$AR -DCMAKE_CXX_COMPILER_RANLIB=$RANLIB"
'';
NIX_CFLAGS_COMPILE = lib.optionals (stdenv.cc.isClang && stdenv.isDarwin) [