doc: add explanatory code comment

authored by Valentin Gagarin and committed by fricklerhandwerk 0530d6bd 2bbf67d3

+4
+4
pkgs/build-support/mkshell/default.nix
··· 16 let 17 mergeInputs = name: 18 (attrs.${name} or [ ]) ++ 19 (lib.subtractLists inputsFrom (lib.flatten (lib.catAttrs name inputsFrom))); 20 21 rest = builtins.removeAttrs attrs [
··· 16 let 17 mergeInputs = name: 18 (attrs.${name} or [ ]) ++ 19 + # 1. get all `{build,nativeBuild,...}Inputs` from the elements of `inputsFrom` 20 + # 2. since that is a list of lists, `flatten` that into a regular list 21 + # 3. filter out of the result everything that's in `inputsFrom` itself 22 + # this leaves actual dependencies of the derivations in `inputsFrom`, but never the derivations themselves 23 (lib.subtractLists inputsFrom (lib.flatten (lib.catAttrs name inputsFrom))); 24 25 rest = builtins.removeAttrs attrs [