lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

modules/meta-maintainers: Refactor maintainer type merge function

Easily tested now.
Thank you Matt for this suggestion!

Co-Authored-By: Robert Hensing <robert@roberthensing.nl>

authored by

Matt Sturgeon
Robert Hensing
and committed by
Robert Hensing
79748def 0c156a71

+5 -3
+5 -3
modules/generic/meta-maintainers.nix
··· 11 maintainer = mkOptionType { 12 name = "maintainer"; 13 check = email: lib.elem email (lib.attrValues lib.maintainers); 14 - merge = 15 - loc: defs: 16 - lib.listToAttrs (lib.singleton (lib.nameValuePair (lib.last defs).file (lib.last defs).value)); 17 }; 18 19 listOfMaintainers = types.listOf maintainer // {
··· 11 maintainer = mkOptionType { 12 name = "maintainer"; 13 check = email: lib.elem email (lib.attrValues lib.maintainers); 14 + merge = loc: defs: { 15 + # lib.last: Perhaps this could be merged instead, if "at most once per module" 16 + # is a problem (see option description). 17 + ${(lib.last defs).file} = (lib.last defs).value; 18 + }; 19 }; 20 21 listOfMaintainers = types.listOf maintainer // {