summary refs log tree commit diff
path: root/lib/systems/parse.nix
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2021-08-01 12:25:45 +0000
committerAlyssa Ross <hi@alyssa.is>2021-08-01 15:27:12 +0000
commit3669b12f35aa4cce673191e061349e70bb3d4ddd (patch)
treee3aa2d2fa9323cf283972b534eb1fe50ef38ad84 /lib/systems/parse.nix
parent173a37e7b5bb79566ca91876820235a88acea03d (diff)
downloadnixpkgs-3669b12f35aa4cce673191e061349e70bb3d4ddd.tar
nixpkgs-3669b12f35aa4cce673191e061349e70bb3d4ddd.tar.gz
nixpkgs-3669b12f35aa4cce673191e061349e70bb3d4ddd.tar.bz2
nixpkgs-3669b12f35aa4cce673191e061349e70bb3d4ddd.tar.lz
nixpkgs-3669b12f35aa4cce673191e061349e70bb3d4ddd.tar.xz
nixpkgs-3669b12f35aa4cce673191e061349e70bb3d4ddd.tar.zst
nixpkgs-3669b12f35aa4cce673191e061349e70bb3d4ddd.zip
lib.systems: add m68k-netbsd support
m68k was recently added for Linux and none, but NetBSD also supports
m68k.  Nothing will build yet, but I want to make sure we at least
encode the existence of NetBSD support for every applicable
architecture we support for other operating systems.
Diffstat (limited to 'lib/systems/parse.nix')
-rw-r--r--lib/systems/parse.nix7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/systems/parse.nix b/lib/systems/parse.nix
index 386f252f2ba..77e941a913c 100644
--- a/lib/systems/parse.nix
+++ b/lib/systems/parse.nix
@@ -127,9 +127,10 @@ rec {
 
   # GNU build systems assume that older NetBSD architectures are using a.out.
   gnuNetBSDDefaultExecFormat = cpu:
-    if (cpu.family == "x86" && cpu.bits == 32) ||
-       (cpu.family == "arm" && cpu.bits == 32) ||
-       (cpu.family == "sparc" && cpu.bits == 32)
+    if (cpu.family == "arm" && cpu.bits == 32) ||
+       (cpu.family == "sparc" && cpu.bits == 32) ||
+       (cpu.family == "m68k" && cpu.bits == 32) ||
+       (cpu.family == "x86" && cpu.bits == 32)
     then execFormats.aout
     else execFormats.elf;