lol

Merge pull request #260773 from chayleaf/keepassxc

keepassxc: add firefox native messaging host file

authored by

Martin Weinelt and committed by
GitHub
2061388f ac005135

+17
+6
pkgs/applications/misc/keepassxc/default.nix
··· 97 97 wrapQtApp "$out/Applications/KeePassXC.app/Contents/MacOS/KeePassXC" 98 98 ''; 99 99 100 + # See https://github.com/keepassxreboot/keepassxc/blob/cd7a53abbbb81e468efb33eb56eefc12739969b8/src/browser/NativeMessageInstaller.cpp#L317 101 + postInstall = lib.optionalString withKeePassBrowser '' 102 + mkdir -p "$out/lib/mozilla/native-messaging-hosts" 103 + substituteAll "${./firefox-native-messaging-host.json}" "$out/lib/mozilla/native-messaging-hosts/org.keepassxc.keepassxc_browser.json" 104 + ''; 105 + 100 106 buildInputs = [ 101 107 curl 102 108 botan2
+9
pkgs/applications/misc/keepassxc/firefox-native-messaging-host.json
··· 1 + { 2 + "name": "org.keepassxc.keepassxc_browser", 3 + "description": "KeePassXC integration with native messaging support", 4 + "path": "@out@/bin/keepassxc-proxy", 5 + "type": "stdio", 6 + "allowed_extensions": [ 7 + "keepassxc-browser@keepassxc.org" 8 + ] 9 + }
+2
pkgs/applications/networking/browsers/firefox/wrapper.nix
··· 8 8 , browserpass, gnome-browser-connector, uget-integrator, plasma5Packages, bukubrow, pipewire 9 9 , tridactyl-native 10 10 , fx-cast-bridge 11 + , keepassxc 11 12 , udev 12 13 , libkrb5 13 14 , libva ··· 70 71 ++ lib.optional (cfg.enableUgetIntegrator or false) uget-integrator 71 72 ++ lib.optional (cfg.enablePlasmaBrowserIntegration or false) plasma5Packages.plasma-browser-integration 72 73 ++ lib.optional (cfg.enableFXCastBridge or false) fx-cast-bridge 74 + ++ lib.optional (cfg.enableKeePassXC or false) keepassxc 73 75 ++ extraNativeMessagingHosts 74 76 ; 75 77 libs = lib.optionals stdenv.isLinux [ udev libva mesa libnotify xorg.libXScrnSaver cups pciutils ]