maintainers/scripts/update.nix: deduplicate packages

Lot of my GNOME packages have several legacy aliases,
which causes them to be updated multiple times.

This patch uses lib.unique to remove the duplicates.

+16 -14
+16 -14
maintainers/scripts/update.nix
··· 9 9 pkgs = import ./../../default.nix { }; 10 10 11 11 packagesWith = cond: return: set: 12 - pkgs.lib.flatten 13 - (pkgs.lib.mapAttrsToList 14 - (name: pkg: 15 - let 16 - result = builtins.tryEval ( 17 - if pkgs.lib.isDerivation pkg && cond name pkg 18 - then [(return name pkg)] 19 - else if pkg.recurseForDerivations or false || pkg.recurseForRelease or false 20 - then packagesWith cond return pkg 12 + pkgs.lib.unique 13 + (pkgs.lib.flatten 14 + (pkgs.lib.mapAttrsToList 15 + (name: pkg: 16 + let 17 + result = builtins.tryEval ( 18 + if pkgs.lib.isDerivation pkg && cond name pkg 19 + then [(return name pkg)] 20 + else if pkg.recurseForDerivations or false || pkg.recurseForRelease or false 21 + then packagesWith cond return pkg 22 + else [] 23 + ); 24 + in 25 + if result.success then result.value 21 26 else [] 22 - ); 23 - in 24 - if result.success then result.value 25 - else [] 27 + ) 28 + set 26 29 ) 27 - set 28 30 ); 29 31 30 32 packagesWithUpdateScriptAndMaintainer = maintainer':