nixos/firefox: dedupe identically nativeMessageHosts packages

This commit is contained in:
Sandro Jäckel 2024-08-17 00:09:24 +02:00
parent b5cd423a36
commit 18135de79a
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -313,7 +313,9 @@ in
old.extraPrefsFiles or [ ]
++ cfg.autoConfigFiles
++ [ (pkgs.writeText "firefox-autoconfig.js" cfg.autoConfig) ];
nativeMessagingHosts = old.nativeMessagingHosts or [ ] ++ cfg.nativeMessagingHosts.packages;
nativeMessagingHosts = lib.unique (
old.nativeMessagingHosts or [ ] ++ cfg.nativeMessagingHosts.packages
);
cfg = (old.cfg or { }) // cfg.wrapperConfig;
}))
];