From 9e33406d48ea5eb677b11100a90c7c8188abda79 Mon Sep 17 00:00:00 2001 From: Weijia Wang <9713184+wegank@users.noreply.github.com> Date: Wed, 8 Apr 2026 08:48:28 +0200 Subject: [PATCH] python3Packages.numpy: fix loongarch64-linux build --- pkgs/development/python-modules/numpy/2.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/numpy/2.nix b/pkgs/development/python-modules/numpy/2.nix index aebac618efb6..bee037126c99 100644 --- a/pkgs/development/python-modules/numpy/2.nix +++ b/pkgs/development/python-modules/numpy/2.nix @@ -63,7 +63,7 @@ buildPythonPackage (finalAttrs: { --replace-fail '/bin/true' '${lib.getExe' coreutils "true"}' ''; - mesonFlags = [ + mesonFlags = lib.optionals (!stdenv.hostPlatform.isLoongArch64) [ # This is required to support CPUs with feature-sets earlier than x86-64-v2 # (before 2009). This will still build optimizations for newer features, but # allow for importing with older machines. See: