From de60b9827c49f2b3f96b02a0cd3a0dcd03a685c3 Mon Sep 17 00:00:00 2001 From: Andrea Ciceri Date: Mon, 20 Oct 2025 18:43:41 +0200 Subject: [PATCH] python3Packages.stringzilla: fix build on `aarch64-linux` --- pkgs/development/python-modules/stringzilla/default.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/development/python-modules/stringzilla/default.nix b/pkgs/development/python-modules/stringzilla/default.nix index 05edc2fdf6c5..35876032eea4 100644 --- a/pkgs/development/python-modules/stringzilla/default.nix +++ b/pkgs/development/python-modules/stringzilla/default.nix @@ -21,6 +21,10 @@ buildPythonPackage rec { hash = "sha256-0CIekVxChvH912vFnBF2FR1YyIpxi3SD7KhBlh7yFGA="; }; + # Define _POSIX_C_SOURCE to enable POSIX signal handling for ARM capability detection + # See: https://github.com/ashvardanian/StringZilla/pull/263 + env.NIX_CFLAGS_COMPILE = "-D_POSIX_C_SOURCE=200809L"; + postPatch = lib.optionalString stdenv.hostPlatform.isDarwin '' # error: unsupported option '-mfloat-abi=' for target 'aarch64-apple-darwin' substituteInPlace setup.py \