summary refs log tree commit diff
path: root/lib/systems/for-meta.nix
blob: 0a7a4bf5b0cc0b6931a30b38fa663bcad108b7f1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ lib }:
let
  inherit (lib.systems) parse;
  inherit (lib.systems.inspect) patterns;

in rec {
  inherit (lib.systems.doubles) all mesaPlatforms;
  none = [];

  arm     = [ patterns.Arm ];
  aarch64 = [ patterns.Aarch64 ];
  x86     = [ patterns.x86 ];
  i686    = [ patterns.i686 ];
  x86_64  = [ patterns.x86_64 ];
  mips    = [ patterns.Mips ];

  cygwin  = [ patterns.Cygwin ];
  darwin  = [ patterns.Darwin ];
  freebsd = [ patterns.FreeBSD ];
  # Should be better, but MinGW is unclear, and HURD is bit-rotted.
  gnu     = [ { kernel = parse.kernels.linux; abi = parse.abis.gnu; } ];
  illumos = [ patterns.SunOS ];
  linux   = [ patterns.Linux ];
  netbsd  = [ patterns.NetBSD ];
  openbsd = [ patterns.OpenBSD ];
  unix    = patterns.Unix; # Actually a list
}