nixpkgs/lib/systems
Adam Joseph 20b62456f0 lib/systems/parse.nix: add, use removeAbiSuffix
gnu-config will ignore the portion of a triple matching the regex
`e?abi.*$` when determining the validity of a triple.  In other
words, `i386-linuxabichickenlips` is a valid triple.

This commit updates our parsing routines to match gnu-config.

I was recently surprised to discover that it is in fact possible to
shoehorn ABI flavors into nix doubles in a way which preserves their
property of being a (non-canonical) subset of the valid gnu-config
triples.  This commit is required in order to exploit that discovery
to add automatic detection of ILP32 platforms (64-bit void*, 32-bit
int, like the Apple Watch and MIPS n32) to Nix.
2023-10-22 17:05:05 -07:00
..
architectures.nix
default.nix Merge pull request #249069 from amjoseph-nixpkgs/pr/lib/systems/ubootArch 2023-09-30 10:45:36 +03:00
doubles.nix
examples.nix Merge pull request #247077 from jmbaur/aarch64-embedded-rustc 2023-09-23 06:30:47 +03:00
flake-systems.nix
inspect.nix
parse.nix lib/systems/parse.nix: add, use removeAbiSuffix 2023-10-22 17:05:05 -07:00
platforms.nix