mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-08 13:39:20 +03:00
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'`
This commit is contained in:
parent
921791e87a
commit
b8779dbffe
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user