From 397e068a54c36e9aad2ac8a7e0a53ea0db4c3627 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Sat, 3 Jul 2021 11:36:19 +0200 Subject: [PATCH] sqlitebrowser: add wrapGAppsHook Fixes opening file dialogs on non-NixOS: $ ./result/bin/sqlitebrowser [... try to open a file dialog: File -> Open Database ...] (.sqlitebrowser-wrapped:7229): GLib-GIO-ERROR **: 11:27:46.197: Settings schema 'org.gtk.Settings.FileChooser' does not contain a key named 'show-type-column' Trace/breakpoint trap (core dumped) --- pkgs/development/tools/database/sqlitebrowser/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/tools/database/sqlitebrowser/default.nix b/pkgs/development/tools/database/sqlitebrowser/default.nix index 45b5f185880d..9ff5c1b01b87 100644 --- a/pkgs/development/tools/database/sqlitebrowser/default.nix +++ b/pkgs/development/tools/database/sqlitebrowser/default.nix @@ -1,5 +1,5 @@ { mkDerivation, lib, fetchFromGitHub, cmake -, qtbase, qttools, sqlite }: +, qtbase, qttools, sqlite, wrapGAppsHook }: mkDerivation rec { pname = "sqlitebrowser"; @@ -18,7 +18,7 @@ mkDerivation rec { # We *really* should get that cleaned up. buildInputs = [ qtbase sqlite ]; - nativeBuildInputs = [ cmake qttools ]; + nativeBuildInputs = [ cmake qttools wrapGAppsHook ]; meta = with lib; { description = "DB Browser for SQLite";