summary refs log tree commit diff
path: root/lib/systems/inspect.nix
diff options
context:
space:
mode:
authorAdam Joseph <adam@westernsemico.com>2022-04-10 01:56:28 -0700
committerAdam Joseph <adam@westernsemico.com>2022-04-10 01:56:28 -0700
commit81afd541f99a6d1c9aea2ddbad642f8df0db1c18 (patch)
treef878774ad1a97181ab853fa4a379558201e96588 /lib/systems/inspect.nix
parentc5b94499b09a79166d365ed0605a0bded98fb762 (diff)
downloadnixpkgs-81afd541f99a6d1c9aea2ddbad642f8df0db1c18.tar
nixpkgs-81afd541f99a6d1c9aea2ddbad642f8df0db1c18.tar.gz
nixpkgs-81afd541f99a6d1c9aea2ddbad642f8df0db1c18.tar.bz2
nixpkgs-81afd541f99a6d1c9aea2ddbad642f8df0db1c18.tar.lz
nixpkgs-81afd541f99a6d1c9aea2ddbad642f8df0db1c18.tar.xz
nixpkgs-81afd541f99a6d1c9aea2ddbad642f8df0db1c18.tar.zst
nixpkgs-81afd541f99a6d1c9aea2ddbad642f8df0db1c18.zip
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/inspect.nix')
-rw-r--r--lib/systems/inspect.nix1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/systems/inspect.nix b/lib/systems/inspect.nix
index 89cac575c67..0ebaeba7bd8 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; }; };