nixpkgs/lib
John Ericson c26252af3e lib, stdenv: Check meta.platforms against host platform and be open world
First, we need check against the host platform, not the build platform.
That's simple enough.

Second, we move away from exahustive finite case analysis (i.e.
exhaustively listing all platforms the package builds on). That only
work in a closed-world setting, where we know all platforms we might
build one. But with cross compilation, we may be building for arbitrary
platforms, So we need fancier filters. This is the closed world to open
world change.

The solution is instead of having a list of systems (strings in the form
"foo-bar"), we have a list of of systems or "patterns", i.e. attributes
that partially match the output of the parsers in `lib.systems.parse`.
The "check meta" logic treats the systems strings as an exact whitelist
just as before, but treats the patterns as a fuzzy whitelist,
intersecting the actual `hostPlatform` with the pattern and then
checking for equality. (This is done using `matchAttrs`).

The default convenience lists for `meta.platforms` are now changed to be
lists of patterns (usually a single pattern) in
`lib/systems/for-meta.nix` for maximum flexibility under this new
system.

Fixes #30902
2018-03-15 00:44:34 -04:00
..
systems lib, stdenv: Check meta.platforms against host platform and be open world 2018-03-15 00:44:34 -04:00
tests lib, treewide: Add missing MIPS arches, and fix existing usage 2018-02-23 20:43:42 -05:00
attrsets.nix
composable-derivation.nix
customisation.nix lib.addPassthru: removed as scheduled 2018-03-03 17:57:38 +01:00
debug.nix Add setFunctionArgs lib function. 2018-01-31 14:02:19 -05:00
default.nix lib, stdenv: Check meta.platforms against host platform and be open world 2018-03-15 00:44:34 -04:00
deprecated.nix Add setFunctionArgs lib function. 2018-01-31 14:02:19 -05:00
fetchers.nix
filesystem.nix
fixed-points.nix
generators.nix Add setFunctionArgs lib function. 2018-01-31 14:02:19 -05:00
licenses.nix z88dk: init at unstable-2018-02-20 (#35244) 2018-02-20 22:06:25 +00:00
lists.nix Merge pull request #33898 from oxij/nixos/related-packages-v5 2018-02-09 20:36:27 -05:00
maintainers-list.nix maintainers: remove null fields 2018-03-05 11:14:35 -05:00
meta.nix
minver.nix
modules.nix Add setFunctionArgs lib function. 2018-01-31 14:02:19 -05:00
options.nix lib: export option location in optionAttrSetToDocList 2018-02-11 22:04:09 +00:00
sources.nix callCabal2nix: Fix calling with a path in the store. 2018-01-11 10:17:56 -05:00
strings-with-deps.nix
strings.nix
trivial.nix lib: implement compare, splitByAndCompare, and compareLists 2018-02-09 19:51:05 +00:00
types.nix lib/types: add types.nonEmptyListOf 2018-02-08 10:01:49 +01:00
versions.nix lib: add versions library 2018-03-04 06:28:34 -08:00