about summary refs log tree commit diff
path: root/lib/systems/inspect.nix
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2023-01-29 14:44:42 +0000
committerAlyssa Ross <hi@alyssa.is>2023-01-30 19:54:06 +0000
commitaa51704ba5aa3012397024d9fb719c0bc62e573e (patch)
treecc2ec02068bb993fc4de4df0b079a0040bee07b0 /lib/systems/inspect.nix
parent872d17dee84e3c20b85f311f4770b34662ba7e4d (diff)
lib.systems.inspect.patterns.isEfi: drop ARMv5
I'm not aware of any ARMv5 EFI implementation.  gnu-efi doesn't
support it, so the build of systemd for armv5tel-linux is broken if
it's isEfi.
Diffstat (limited to 'lib/systems/inspect.nix')
-rw-r--r--lib/systems/inspect.nix9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/systems/inspect.nix b/lib/systems/inspect.nix
index b40a82b3321e8..6a9f0fadcd3d1 100644
--- a/lib/systems/inspect.nix
+++ b/lib/systems/inspect.nix
@@ -81,8 +81,13 @@ rec {
     isMusl         = with abis; map (a: { abi = a; }) [ musl musleabi musleabihf muslabin32 muslabi64 ];
     isUClibc       = with abis; map (a: { abi = a; }) [ uclibc uclibceabi uclibceabihf ];
 
-    isEfi          = map (family: { cpu.family = family; })
-                       [ "x86" "arm" "riscv" ];
+    isEfi = [
+      { cpu = { family = "arm"; version = "6"; }; }
+      { cpu = { family = "arm"; version = "7"; }; }
+      { cpu = { family = "arm"; version = "8"; }; }
+      { cpu = { family = "riscv"; }; }
+      { cpu = { family = "x86"; }; }
+    ];
   };
 
   matchAnyAttrs = patterns: