3
0
Fork 0
forked from mirrors/nixpkgs
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
attrsets.nix unionOfDisjoint: use builtins.intersectAttrs 2022-09-25 00:09:15 -07:00
cli.nix
customisation.nix
debug.nix
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
flake.nix
generators.nix treewide: optional -> optionals where the argument is a list 2022-10-10 15:40:21 +03:00
kernel.nix
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
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
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