nixpkgs/lib
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
..
systems lib/systems/inspect.nix: add isILP32 predicate 2023-01-01 17:16:06 -08:00
tests lib/versions: add pad 2022-12-21 12:58:21 +01:00
ascii-table.nix lib.strings: Add function to convert character to number 2022-10-20 18:58:44 +02:00
asserts.nix doc: auto-generate asserts and attrset library docs 2022-12-08 22:58:22 +01:00
attrsets.nix attrsets: fix and add some doc types 2022-12-24 14:08:11 +01:00
cli.nix
customisation.nix lib/customisation.overrideDerivation: propagate evaluation condition 2023-01-01 14:10:42 +01:00
debug.nix
default.nix lib: Add isStringLike 2022-12-31 01:47:28 +01:00
deprecated.nix lib.closePropagation: Remove the quadratic behavior in lib.closePropagation 2022-10-07 18:03:42 +02:00
derivations.nix lib: fix typos 2022-12-17 18:59:29 -05:00
fetchers.nix
filesystem.nix lib: Automatically generate lib.filesytem docs 2022-10-26 15:10:47 +02:00
fixed-points.nix
flake.nix
generators.nix stdenv/check-meta: do deep type checks 2023-01-01 14:10:42 +01:00
kernel.nix
licenses.nix linuxdoc-tools: init at 0.9.82 2022-12-28 00:17:27 +01:00
lists.nix Fix a typo in the lib.foldr docstring 2022-08-20 23:58:57 +01:00
meta.nix
minver.nix boostrap fetchurl: Add SRI support 2022-08-24 09:55:45 +02:00
modules.nix lib: fix typos 2022-12-17 18:59:29 -05:00
options.nix attrsets: fix and add some doc types 2022-12-24 14:08:11 +01:00
source-types.nix lib.sourceTypes: simplify implementation 2022-05-30 16:27:34 +08:00
sources.nix lib/sources: make commitIdFromGitRepoOrError internal and use # for comments 2022-11-18 17:17:51 +02:00
strings-with-deps.nix
strings.nix lib.isStringLike: Remove use of list 2022-12-31 01:33:47 +01:00
trivial.nix lib/trival: Bump oldestSupportedRelease to 2211 2023-01-01 14:57:25 +01:00
types.nix lib.strings: isSimpleCoercibleString -> isStringLike 2022-12-31 01:33:46 +01:00
versions.nix lib/versions: add pad 2022-12-21 12:58:21 +01:00
zip-int-bits.nix lib/zip-int-bits: fix typo: bitXOR -> bitXor 2022-06-09 20:04:37 +03:00