3
0
Fork 0
forked from mirrors/nixpkgs

stdenv/booter.nix: Add longer note explaining indexing

This commit is contained in:
John Ericson 2017-01-13 13:47:17 -05:00
parent ff35560460
commit abaf790ea9

View file

@ -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);