nixos/firefox: dedupe identically nativeMessageHosts packages (#335253)

This commit is contained in:
Sandro 2024-11-13 17:04:55 +01:00 committed by GitHub
commit a9db65e0dd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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;
}))
];