Merge pull request #314167 from reckenrode/override-sdk-list-inputs-fix

overrideSDK: handle propagated lists of inputs
This commit is contained in:
Emily 2024-08-02 22:55:05 +01:00 committed by GitHub
commit c6a4f2c6cd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -287,6 +287,7 @@ let
replacements = lib.pipe propagatedInputs [
(lib.filter (pkg: pkg != null))
lib.flatten
(map (dep: {
name = builtins.unsafeDiscardStringContext dep;
value = getReplacement newPackages dep;
@ -311,6 +312,7 @@ let
let
mapPackageDeps = lib.flip lib.pipe [
(lib.filter (pkg: pkg != null))
lib.flatten
(map (pkg: {
key = builtins.unsafeDiscardStringContext pkg;
package = pkg;