From b8779dbffebde9eaba8a80a5505ce04876f13d09 Mon Sep 17 00:00:00 2001 From: Ryan Burns Date: Fri, 17 Sep 2021 03:31:44 -0700 Subject: [PATCH] nim: fix power arch predicates isPowerPC is only true on 32 bit machines; to check the family we should use isPower here Otherwise, e.g. `pkgsCross.powernv.buildPackages.nim` fails to eval with `error: evaluation aborted with the following error message: 'no Nim CPU support known for powerpc64le-unknown-linux-gnu'` --- pkgs/development/compilers/nim/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/compilers/nim/default.nix b/pkgs/development/compilers/nim/default.nix index 25b1c4873572..49e18097ab9a 100644 --- a/pkgs/development/compilers/nim/default.nix +++ b/pkgs/development/compilers/nim/default.nix @@ -22,9 +22,9 @@ let "mips64" else if isMsp430 then "msp430" - else if isPowerPC && is32bit then + else if isPower && is32bit then "powerpc" - else if isPowerPC && is64bit then + else if isPower && is64bit then "powerpc64" else if isRiscV && is64bit then "riscv64"