mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-18 02:05:51 +03:00
Merge pull request #260773 from chayleaf/keepassxc
keepassxc: add firefox native messaging host file
This commit is contained in:
commit
2061388fd2
@ -97,6 +97,12 @@ stdenv.mkDerivation rec {
|
|||||||
wrapQtApp "$out/Applications/KeePassXC.app/Contents/MacOS/KeePassXC"
|
wrapQtApp "$out/Applications/KeePassXC.app/Contents/MacOS/KeePassXC"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# See https://github.com/keepassxreboot/keepassxc/blob/cd7a53abbbb81e468efb33eb56eefc12739969b8/src/browser/NativeMessageInstaller.cpp#L317
|
||||||
|
postInstall = lib.optionalString withKeePassBrowser ''
|
||||||
|
mkdir -p "$out/lib/mozilla/native-messaging-hosts"
|
||||||
|
substituteAll "${./firefox-native-messaging-host.json}" "$out/lib/mozilla/native-messaging-hosts/org.keepassxc.keepassxc_browser.json"
|
||||||
|
'';
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
curl
|
curl
|
||||||
botan2
|
botan2
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
{
|
||||||
|
"name": "org.keepassxc.keepassxc_browser",
|
||||||
|
"description": "KeePassXC integration with native messaging support",
|
||||||
|
"path": "@out@/bin/keepassxc-proxy",
|
||||||
|
"type": "stdio",
|
||||||
|
"allowed_extensions": [
|
||||||
|
"keepassxc-browser@keepassxc.org"
|
||||||
|
]
|
||||||
|
}
|
@ -8,6 +8,7 @@
|
|||||||
, browserpass, gnome-browser-connector, uget-integrator, plasma5Packages, bukubrow, pipewire
|
, browserpass, gnome-browser-connector, uget-integrator, plasma5Packages, bukubrow, pipewire
|
||||||
, tridactyl-native
|
, tridactyl-native
|
||||||
, fx-cast-bridge
|
, fx-cast-bridge
|
||||||
|
, keepassxc
|
||||||
, udev
|
, udev
|
||||||
, libkrb5
|
, libkrb5
|
||||||
, libva
|
, libva
|
||||||
@ -70,6 +71,7 @@ let
|
|||||||
++ lib.optional (cfg.enableUgetIntegrator or false) uget-integrator
|
++ lib.optional (cfg.enableUgetIntegrator or false) uget-integrator
|
||||||
++ lib.optional (cfg.enablePlasmaBrowserIntegration or false) plasma5Packages.plasma-browser-integration
|
++ lib.optional (cfg.enablePlasmaBrowserIntegration or false) plasma5Packages.plasma-browser-integration
|
||||||
++ lib.optional (cfg.enableFXCastBridge or false) fx-cast-bridge
|
++ lib.optional (cfg.enableFXCastBridge or false) fx-cast-bridge
|
||||||
|
++ lib.optional (cfg.enableKeePassXC or false) keepassxc
|
||||||
++ extraNativeMessagingHosts
|
++ extraNativeMessagingHosts
|
||||||
;
|
;
|
||||||
libs = lib.optionals stdenv.isLinux [ udev libva mesa libnotify xorg.libXScrnSaver cups pciutils ]
|
libs = lib.optionals stdenv.isLinux [ udev libva mesa libnotify xorg.libXScrnSaver cups pciutils ]
|
||||||
|
Loading…
Reference in New Issue
Block a user