1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 03:30:45 +00:00
nixpkgs/lib/systems
Adam Joseph 14f337afb6 lib/systems/inspect.nix: add isILP32 predicate
I've run into a few packages that need an extra flag on platforms
where `int` has more bits than `void*` does.  I know of three such
platforms:

* [aarch64ilp32], used on both Linux and also on the [Apple Watch]
* [x32], the x86 ILP32 ABI
* [mips64n32], used on [Longsoon] and Cavium Octeon routers.

This PR introduces a predicate so the package flags can be added in
a generic way.

[Apple Watch]: https://gist.github.com/woachk/943828f37c14563a607a26116435bf27#watch
[mips64n32]: https://en.wikipedia.org/wiki/MIPS_architecture#Calling_conventions
[Longsoon]: https://en.wikipedia.org/wiki/Loongson
[x32]: https://en.wikipedia.org/wiki/X32_ABI
2023-01-01 17:16:06 -08:00
..
architectures.nix lib: fix typos 2022-12-17 18:59:29 -05:00
default.nix lib: fix typos 2022-12-17 18:59:29 -05:00
doubles.nix lib/systems: Support FreeBSD 2022-11-04 16:49:28 -04:00
examples.nix lib/systems: Support FreeBSD 2022-11-04 16:49:28 -04:00
flake-systems.nix lib: fix typos 2022-12-17 18:59:29 -05:00
inspect.nix lib/systems/inspect.nix: add isILP32 predicate 2023-01-01 17:16:06 -08:00
parse.nix lib/systems/parse.nix: mkSkeletonFromList: improve readability 2022-11-13 23:08:57 -08:00
platforms.nix Merge pull request #170737 from amjoseph-nixpkgs/fix-mips32-detection 2022-11-21 19:40:18 +02:00