diff options
author | John Ericson <Ericson2314@Yahoo.com> | 2017-01-13 13:47:17 -0500 |
---|---|---|
committer | John Ericson <Ericson2314@Yahoo.com> | 2017-01-13 13:47:17 -0500 |
commit | abaf790ea915f826dff694afe032f081c0f5a510 (patch) | |
tree | 3b83085b3d479b7f4e46279a01208517a9e343b1 /pkgs/stdenv | |
parent | ff355604602edb2d71e7fecaec4b3871ffc943e3 (diff) |
stdenv/booter.nix: Add longer note explaining indexing
Diffstat (limited to 'pkgs/stdenv')
-rw-r--r-- | pkgs/stdenv/booter.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/stdenv/booter.nix b/pkgs/stdenv/booter.nix index b1e1e898aa3f6..11ca8e1440e11 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); |