nixpkgs/lib
Adam Joseph 36a566b78f lib/systems/parse.nix: mkSkeletonFromList: improve readability
The main purpose of this PR is to make the basis for
`mkSkeletonFromList`'s decision between `cpu-kernel-libcabi` vs
`cpu-vendor-os` clear, without changing its behavior.  The existing
code obscures this decision behind a sequence of prioritized matches
(i.e. `if-then`) which jump around between different coordinates.

Two side benefits of this PR:

1. It makes the root cause of #165836 obvious: we are missing a case
   for `cpu-vendor-libcabi`.  This is why nixpkgs stumbles over
   `*-none-*`.

2. It illuminates some very weird corner cases in the existing
   logic, like `*-${vendor}-ghcjs` overriding the `vendor` field,
   and `mingw32` being transformed into `windows` in some cases.

Co-authored-by: John Ericson <git@JohnEricson.me>
2022-11-13 23:08:57 -08:00
..
systems lib/systems/parse.nix: mkSkeletonFromList: improve readability 2022-11-13 23:08:57 -08:00
tests lib/systems: Support FreeBSD 2022-11-04 16:49:28 -04:00
ascii-table.nix lib.strings: Add function to convert character to number 2022-10-20 18:58:44 +02:00
asserts.nix lib/asserts: use throw to display message for assertMsg 2022-01-19 00:50:06 +01:00
attrsets.nix unionOfDisjoint: use builtins.intersectAttrs 2022-09-25 00:09:15 -07:00
cli.nix
customisation.nix lib/customization: Improve callPackage error message for missing args 2022-04-01 22:03:05 +02:00
debug.nix lib/debug: add traceFnSeqN 2021-01-25 19:25:50 +01:00
default.nix lib/strings: Refactor toInt into toInt and toIntBase10 2022-10-23 17:50:24 -04:00
deprecated.nix lib.closePropagation: Remove the quadratic behavior in lib.closePropagation 2022-10-07 18:03:42 +02:00
derivations.nix lib: Add lazyDerivation 2022-09-21 10:55:07 +01:00
fetchers.nix
filesystem.nix lib: Automatically generate lib.filesytem docs 2022-10-26 15:10:47 +02:00
fixed-points.nix lib.compose{Many,}Extensions: Make compatible with nix flake check 2021-08-26 09:12:17 -04:00
flake.nix Fix import path. 2021-08-14 14:46:00 -05:00
generators.nix treewide: optional -> optionals where the argument is a list 2022-10-10 15:40:21 +03:00
kernel.nix Merge pull request #84032 from teto/fix_kernel_merge 2020-05-22 13:32:22 +02:00
licenses.nix Merge pull request #196007 from wegank/fdl11-remove 2022-11-09 22:31:50 +01:00
lists.nix Fix a typo in the lib.foldr docstring 2022-08-20 23:58:57 +01:00
meta.nix lib/meta: add getExe to get the main program of a drv 2022-04-24 04:19:49 +03:00
minver.nix boostrap fetchurl: Add SRI support 2022-08-24 09:55:45 +02:00
modules.nix lib.modules.doRename: Don't define warning, even as undefined, if not warning. 2022-11-03 13:12:58 +01:00
options.nix haskell.compiler.ghc92: 9.2.4 -> 9.2.5 2022-11-07 17:29:47 +01:00
source-types.nix lib.sourceTypes: simplify implementation 2022-05-30 16:27:34 +08:00
sources.nix Revert "lib,doc: remove obvious usages of toString on paths" 2022-11-05 21:57:23 -03:00
strings-with-deps.nix lib: Use Nix's static scope checking, fix error message, optimize 2020-10-22 13:46:47 +02:00
strings.nix Merge pull request #173949 from jacoblambda/fix-toInt-zero-padding 2022-10-24 13:22:42 +02:00
trivial.nix lib.trivial.toBaseDigits: type check 2022-11-11 10:30:23 +01:00
types.nix lib/types: add descriptionClass for path 2022-11-08 13:31:29 +01:00
versions.nix
zip-int-bits.nix lib/zip-int-bits: fix typo: bitXOR -> bitXor 2022-06-09 20:04:37 +03:00