From 7fcbff801da7e94701efd93369f090e025ee85dd Mon Sep 17 00:00:00 2001 From: Eman Resu <78693624+quatquatt@users.noreply.github.com> Date: Mon, 27 Apr 2026 00:37:30 -0400 Subject: [PATCH] lib.systems.parse: only check condition once --- lib/systems/parse.nix | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/lib/systems/parse.nix b/lib/systems/parse.nix index 0e3a6c2a1239..3f636442ee9d 100644 --- a/lib/systems/parse.nix +++ b/lib/systems/parse.nix @@ -418,10 +418,8 @@ rec { gnuNetBSDDefaultExecFormat = cpu: if - (cpu.family == "arm" && cpu.bits == 32) - || (cpu.family == "sparc" && cpu.bits == 32) - || (cpu.family == "m68k" && cpu.bits == 32) - || (cpu.family == "x86" && cpu.bits == 32) + cpu.bits == 32 + && (cpu.family == "arm" || cpu.family == "sparc" || cpu.family == "m68k" || cpu.family == "x86") then execFormats.aout else