summary refs log tree commit diff
path: root/pkgs/stdenv/booter.nix
diff options
context:
space:
mode:
authorJohn Ericson <Ericson2314@Yahoo.com>2017-01-13 13:47:17 -0500
committerJohn Ericson <Ericson2314@Yahoo.com>2017-01-13 13:47:17 -0500
commitabaf790ea915f826dff694afe032f081c0f5a510 (patch)
tree3b83085b3d479b7f4e46279a01208517a9e343b1 /pkgs/stdenv/booter.nix
parentff355604602edb2d71e7fecaec4b3871ffc943e3 (diff)
downloadnixlib-abaf790ea915f826dff694afe032f081c0f5a510.tar
nixlib-abaf790ea915f826dff694afe032f081c0f5a510.tar.gz
nixlib-abaf790ea915f826dff694afe032f081c0f5a510.tar.bz2
nixlib-abaf790ea915f826dff694afe032f081c0f5a510.tar.lz
nixlib-abaf790ea915f826dff694afe032f081c0f5a510.tar.xz
nixlib-abaf790ea915f826dff694afe032f081c0f5a510.tar.zst
nixlib-abaf790ea915f826dff694afe032f081c0f5a510.zip
stdenv/booter.nix: Add longer note explaining indexing
Diffstat (limited to 'pkgs/stdenv/booter.nix')
-rw-r--r--pkgs/stdenv/booter.nix5
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/stdenv/booter.nix b/pkgs/stdenv/booter.nix
index b1e1e898aa3f..11ca8e1440e1 100644
--- a/pkgs/stdenv/booter.nix
+++ b/pkgs/stdenv/booter.nix
@@ -46,7 +46,10 @@ stageFuns: let
   # isn't already set.
   withAllowCustomOverrides = lib.lists.imap
     (index: stageFun: prevStage:
-      { allowCustomOverrides = index == 1; } # first element, 1-indexed
+      # So true by default for only the first element because one
+      # 1-indexing. Since we reverse the list, this means this is true
+      # for the final stage.
+      { allowCustomOverrides = index == 1; }
       // (stageFun prevStage))
     (lib.lists.reverseList stageFuns);