misc: add librewolf native messaging hosts (#7127)

This commit is contained in:
nakoo 2025-05-30 02:07:27 +00:00 committed by GitHub
parent 8a4b382627
commit 4e9efaa68b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 88 additions and 35 deletions

View file

@ -34,6 +34,7 @@ in
description = "LibreWolf is a privacy enhanced Firefox fork.";
wrappedPackageName = "librewolf";
unwrappedPackageName = "librewolf-unwrapped";
visible = true;
platforms.linux = {
configPath = ".librewolf";
@ -68,5 +69,10 @@ in
home.file.".librewolf/librewolf.overrides.cfg" = lib.mkIf (cfg.settings != { }) {
text = mkOverridesFile cfg.settings;
};
mozilla.librewolfNativeMessagingHosts =
cfg.nativeMessagingHosts
# package configured native messaging hosts (entire browser actually)
++ (lib.optional (cfg.finalPackage != null) cfg.finalPackage);
};
}