diff options
| author | Theodore Ni <3806110+tjni@users.noreply.github.com> | 2022-12-03 15:40:42 -0800 |
|---|---|---|
| committer | Theodore Ni <3806110+tjni@users.noreply.github.com> | 2022-12-04 10:37:49 -0800 |
| commit | 2f06699d515c05b5677eead646bbf21fed15b93e (patch) | |
| tree | 1bfeb10c6c69712049419024a6e674a2f3168e12 | |
| parent | python310Packages.rapidfuzz: add CMake flags to fix build on x86_64-darwin (diff) | |
| download | nixpkgs-2f06699d515c05b5677eead646bbf21fed15b93e.tar.gz | |
python310Packages.levenshtein: disable LTO to fix aarch64-darwin build
(cherry picked from commit c4950e533e535a5b3add343340f8c6321deb2462)
| -rw-r--r-- | pkgs/development/python-modules/levenshtein/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/levenshtein/default.nix b/pkgs/development/python-modules/levenshtein/default.nix index 835552ee526b..fe554a78ffed 100644 --- a/pkgs/development/python-modules/levenshtein/default.nix +++ b/pkgs/development/python-modules/levenshtein/default.nix @@ -1,4 +1,5 @@ { lib +, stdenv , buildPythonPackage , fetchFromGitHub , pythonOlder @@ -36,6 +37,10 @@ buildPythonPackage rec { rapidfuzz-cpp ]; + NIX_CFLAGS_COMPILE = lib.optionals (stdenv.cc.isClang && stdenv.isDarwin) [ + "-fno-lto" # work around https://github.com/NixOS/nixpkgs/issues/19098 + ]; + propagatedBuildInputs = [ rapidfuzz ]; |
