about summary refs log tree commit diff
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-03 06:48:43 -0800
commit0efb882d3f9bda5382110b6e5b59be14203fbb70 (patch)
tree08d027baa2b09dc233c86875d812bb51152e81d4
parentcd53948d6d61b330aa59756b8e2e1f77a9cb0f37 (diff)
downloadnixlib-0efb882d3f9bda5382110b6e5b59be14203fbb70.tar
nixlib-0efb882d3f9bda5382110b6e5b59be14203fbb70.tar.gz
nixlib-0efb882d3f9bda5382110b6e5b59be14203fbb70.tar.bz2
nixlib-0efb882d3f9bda5382110b6e5b59be14203fbb70.tar.lz
nixlib-0efb882d3f9bda5382110b6e5b59be14203fbb70.tar.xz
nixlib-0efb882d3f9bda5382110b6e5b59be14203fbb70.tar.zst
nixlib-0efb882d3f9bda5382110b6e5b59be14203fbb70.zip
python310Packages.rapidfuzz: add CMake flags to fix build on x86_64-darwin
-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) [