1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-09-11 15:08:33 +01:00
nixpkgs/lib/tests
Adam Joseph 12371a51e6 lib/systems: add mips64el definitions
MIPS has a large space of {architecture,abi,endianness}; this commit
adds all of them to lib/systems/platforms.nix so we can be done with
it.

Currently lib/systems/inspect.nix has a single "isMips" predicate,
which is a bit ambiguous now that we will have both mips32 and mips64
support, with the latter having two ABIs.  Let's add four new
predicates (isMips32, isMips64, isMips64n32, and isMips64n64) and
treat the now-ambiguous isMips as deprecated in favor of the
more-specific predicates.  These predicates are used mainly for
enabling/disabling target-specific workarounds, and it is extremely
rare that a platform-specific workaround is needed, and both mips32
and mips64 need exactly the same workaround.

The separate predicates (isMips64n32 and isMips64n64) for ABI
distinctions are, unfortunately, useful.  Boost's user-scheduled
threading (used by nix) does does not currently supports mips64n32,
which is a very desirable ABI on routers since they rarely have
more than 2**32 bytes of DRAM.
2022-03-10 20:30:16 -08:00
..
modules lib.types.optionType: Only merge when necessary 2022-03-10 20:25:49 +01:00
check-eval.nix
maintainers.nix lib/tests/maintainers: add matrix option 2021-10-01 21:27:00 +02:00
misc.nix lib: fix flake check 2021-12-13 12:03:40 +01:00
modules.sh lib.types.optionType: Only merge when necessary 2022-03-10 20:25:49 +01:00
release.nix lib/tests/sources: update to Nix 2.4 cli syntax 2021-11-09 10:47:20 -08:00
sources.sh lib/tests: Set hardening pragmas 2021-11-26 10:55:14 +13:00
systems.nix lib/systems: add mips64el definitions 2022-03-10 20:30:16 -08:00