mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-21 17:01:10 +03:00
This commit adds only comments to platforms.nix.
This commit is contained in:
parent
ed4fa55fc3
commit
6de935a012
1 changed files with 10 additions and 0 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
# Note: lib/systems/default.nix takes care of producing valid,
|
||||||
|
# fully-formed "platform" values (e.g. hostPlatform, buildPlatform,
|
||||||
|
# targetPlatform, etc) containing at least the minimal set of attrs
|
||||||
|
# required (see types.parsedPlatform in lib/systems/parse.nix). This
|
||||||
|
# file takes an already-valid platform and further elaborates it with
|
||||||
|
# optional fields such as linux-kernel, gcc, etc.
|
||||||
|
|
||||||
{ lib }:
|
{ lib }:
|
||||||
rec {
|
rec {
|
||||||
pc = {
|
pc = {
|
||||||
|
@ -548,6 +555,9 @@ rec {
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# This function takes a minimally-valid "platform" and returns an
|
||||||
|
# attrset containing zero or more additional attrs which should be
|
||||||
|
# included in the platform in order to further elaborate it.
|
||||||
select = platform:
|
select = platform:
|
||||||
# x86
|
# x86
|
||||||
/**/ if platform.isx86 then pc
|
/**/ if platform.isx86 then pc
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue