From dc53b6976a6b4e5e48a968f886cc5462df34651c Mon Sep 17 00:00:00 2001 From: Marie Ramlow Date: Mon, 13 Oct 2025 10:30:32 +0200 Subject: [PATCH] audit: disable python on different cpu bits Python wants the cpu to have the same bit size, otherwise the build fails with `error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."` --- pkgs/by-name/au/audit/package.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/au/audit/package.nix b/pkgs/by-name/au/audit/package.nix index 215cda4ba459..7395ada94e13 100644 --- a/pkgs/by-name/au/audit/package.nix +++ b/pkgs/by-name/au/audit/package.nix @@ -16,7 +16,9 @@ gnugrep, coreutils, - enablePython ? !stdenv.hostPlatform.isStatic, + enablePython ? + !stdenv.hostPlatform.isStatic + && stdenv.hostPlatform.parsed.cpu.bits == stdenv.buildPlatform.parsed.cpu.bits, # passthru nix-update-script,