Merge pull request #267285 from fricklerhandwerk/code-comment

This commit is contained in:
Valentin Gagarin 2024-01-13 20:51:37 +01:00 committed by GitHub
commit fd78de6eeb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,6 +16,10 @@
let let
mergeInputs = name: mergeInputs = name:
(attrs.${name} or [ ]) ++ (attrs.${name} or [ ]) ++
# 1. get all `{build,nativeBuild,...}Inputs` from the elements of `inputsFrom`
# 2. since that is a list of lists, `flatten` that into a regular list
# 3. filter out of the result everything that's in `inputsFrom` itself
# this leaves actual dependencies of the derivations in `inputsFrom`, but never the derivations themselves
(lib.subtractLists inputsFrom (lib.flatten (lib.catAttrs name inputsFrom))); (lib.subtractLists inputsFrom (lib.flatten (lib.catAttrs name inputsFrom)));
rest = builtins.removeAttrs attrs [ rest = builtins.removeAttrs attrs [