diff options
author | Adam Joseph <adam@westernsemico.com> | 2022-04-10 01:56:28 -0700 |
---|---|---|
committer | Adam Joseph <adam@westernsemico.com> | 2022-04-10 01:56:28 -0700 |
commit | 81afd541f99a6d1c9aea2ddbad642f8df0db1c18 (patch) | |
tree | f878774ad1a97181ab853fa4a379558201e96588 /lib/systems | |
parent | c5b94499b09a79166d365ed0605a0bded98fb762 (diff) |
lib/systems/inspect.nix: add isPower64
This commit adds an `isPower64` predicate to the two existing predicates for this architecture (`isPower` and `isPowerPC`). Note that `isPowerPC` matches only 32-bit machines, whereas `isPower` matches both 64-bit and 32-bit machines. Prior to this commit there was no single `isXXX` predicate for `powerpc64le`.
Diffstat (limited to 'lib/systems')
-rw-r--r-- | lib/systems/inspect.nix | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/systems/inspect.nix b/lib/systems/inspect.nix index 89cac575c67d3..0ebaeba7bd897 100644 --- a/lib/systems/inspect.nix +++ b/lib/systems/inspect.nix @@ -13,6 +13,7 @@ rec { isx86_64 = { cpu = { family = "x86"; bits = 64; }; }; isPowerPC = { cpu = cpuTypes.powerpc; }; isPower = { cpu = { family = "power"; }; }; + isPower64 = { cpu = { family = "power"; bits = 64; }; }; isx86 = { cpu = { family = "x86"; }; }; isAarch32 = { cpu = { family = "arm"; bits = 32; }; }; isAarch64 = { cpu = { family = "arm"; bits = 64; }; }; |