nixpkgs/pkgs
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
..
applications treewide: get rid of platforms.allBut 2018-03-14 18:44:42 -04:00
build-support makeInitrd: explain why we don't use closureInfo 2018-03-05 13:04:55 +01:00
common-updater
data treewide: get rid of platforms.allBut 2018-03-14 18:44:42 -04:00
desktops Merge branch 'master' 2018-03-05 14:53:27 +01:00
development treewide: get rid of platforms.allBut 2018-03-14 18:44:42 -04:00
games treewide: get rid of platforms.allBut 2018-03-14 18:44:42 -04:00
misc treewide: get rid of platforms.allBut 2018-03-14 18:44:42 -04:00
os-specific treewide: Make shouldUsePackages copypasta use meta.available 2018-03-12 18:55:41 -04:00
servers treewide: Make shouldUsePackages copypasta use meta.available 2018-03-12 18:55:41 -04:00
shells
stdenv lib, stdenv: Check meta.platforms against host platform and be open world 2018-03-15 00:44:34 -04:00
test
tools treewide: get rid of platforms.allBut 2018-03-14 18:44:42 -04:00
top-level treewide: get rid of platforms.allBut 2018-03-14 18:44:42 -04:00