diff options
| author | Adam Joseph <adam@westernsemico.com> | 2022-07-10 01:59:54 -0700 |
|---|---|---|
| committer | Adam Joseph <adam@westernsemico.com> | 2022-11-13 23:08:57 -0800 |
| commit | 36a566b78fe4904913c1c8d16e75da1a7aa6eadb (patch) | |
| tree | dfa0cf392556cace9f31b2291bcaa2880de9bc02 /pkgs/development/python-modules/rangehttpserver | |
| parent | 4f34f4a8633e1f63c1c18c370d63589527f4afd5 (diff) | |
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>
Diffstat (limited to 'pkgs/development/python-modules/rangehttpserver')
0 files changed, 0 insertions, 0 deletions
