summary refs log tree commit diff
path: root/pkgs/applications/misc/keepassx
diff options
context:
space:
mode:
authorKlemens Nanni <klemens@posteo.de>2022-05-28 12:07:21 +0200
committerBjørn Forsman <bjorn.forsman@gmail.com>2022-06-05 13:07:57 +0200
commit1daf0125afd9c44723d16f6b3dad5fcbc3cde858 (patch)
tree52ed9cb63097fdf7be06000340218f11bd9daace /pkgs/applications/misc/keepassx
parentb9b548bccfea52933ef11d4edee7f9363c8440b1 (diff)
downloadnixpkgs-1daf0125afd9c44723d16f6b3dad5fcbc3cde858.tar
nixpkgs-1daf0125afd9c44723d16f6b3dad5fcbc3cde858.tar.gz
nixpkgs-1daf0125afd9c44723d16f6b3dad5fcbc3cde858.tar.bz2
nixpkgs-1daf0125afd9c44723d16f6b3dad5fcbc3cde858.tar.lz
nixpkgs-1daf0125afd9c44723d16f6b3dad5fcbc3cde858.tar.xz
nixpkgs-1daf0125afd9c44723d16f6b3dad5fcbc3cde858.tar.zst
nixpkgs-1daf0125afd9c44723d16f6b3dad5fcbc3cde858.zip
keepassxc: Wrap once
Using Qt *and* GTK means both wrapper hooks kick in, so avoid automatic
GTK wrapping and merge arguments into Qt ones as usual.

Duplicate wrapping must be avoided as it breaks the program's basename,
e.g. `argv[0]` ends up with ".keepassxc-wrapped" rather than
"keepassxc" as basename.

This fixes all three ELF executables (there is `-cli` and `-proxy`).
Diffstat (limited to 'pkgs/applications/misc/keepassx')
-rw-r--r--pkgs/applications/misc/keepassx/community.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/applications/misc/keepassx/community.nix b/pkgs/applications/misc/keepassx/community.nix
index 3daebeaabc9..fdac7cede17 100644
--- a/pkgs/applications/misc/keepassx/community.nix
+++ b/pkgs/applications/misc/keepassx/community.nix
@@ -87,6 +87,11 @@ stdenv.mkDerivation rec {
 
   nativeBuildInputs = [ asciidoctor cmake wrapGAppsHook wrapQtAppsHook qttools pkg-config ];
 
+  dontWrapGApps = true;
+  postFixup = ''
+    qtWrapperArgs+=("''${gappsWrapperArgs[@]}")
+  '';
+
   buildInputs = [
     curl
     botan2