summary refs log tree commit diff
path: root/lib/systems
diff options
context:
space:
mode:
authorAdam Joseph <adam@westernsemico.com>2022-03-08 18:27:49 -0800
committerAdam Joseph <adam@westernsemico.com>2022-03-10 20:30:19 -0800
commit6de935a0126efde78feefbbe3bddfaa6be2bda6a (patch)
tree1f87483c0fbcd63123287f1013892b6d395cc2bc /lib/systems
parented4fa55fc3d152b924d6c23bb97856f64729a11c (diff)
downloadnixpkgs-6de935a0126efde78feefbbe3bddfaa6be2bda6a.tar
nixpkgs-6de935a0126efde78feefbbe3bddfaa6be2bda6a.tar.gz
nixpkgs-6de935a0126efde78feefbbe3bddfaa6be2bda6a.tar.bz2
nixpkgs-6de935a0126efde78feefbbe3bddfaa6be2bda6a.tar.lz
nixpkgs-6de935a0126efde78feefbbe3bddfaa6be2bda6a.tar.xz
nixpkgs-6de935a0126efde78feefbbe3bddfaa6be2bda6a.tar.zst
nixpkgs-6de935a0126efde78feefbbe3bddfaa6be2bda6a.zip
This commit adds only comments to platforms.nix.
Diffstat (limited to 'lib/systems')
-rw-r--r--lib/systems/platforms.nix10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/systems/platforms.nix b/lib/systems/platforms.nix
index fb515f67eee..e7d61b24b05 100644
--- a/lib/systems/platforms.nix
+++ b/lib/systems/platforms.nix
@@ -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 }:
 rec {
   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:
     # x86
     /**/ if platform.isx86 then pc