From 41a56694251e3e08d5ed5239e14b0495f2fdce8e Mon Sep 17 00:00:00 2001 From: ~noodlez1232 Date: Sat, 11 May 2024 17:33:36 -0700 Subject: [PATCH] vbam: Fix gsettings problems. Solution inspired by #305611. If VBAm was used on a system without any gsettings schemas (common on non-GNOME installs), trying to do any sort of opening of directories or other things that require those schemas would cause a hang-then-crash situation. --- pkgs/applications/emulators/vbam/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/applications/emulators/vbam/default.nix b/pkgs/applications/emulators/vbam/default.nix index 80fd7636aacb..3e7a7e2f47cd 100644 --- a/pkgs/applications/emulators/vbam/default.nix +++ b/pkgs/applications/emulators/vbam/default.nix @@ -14,6 +14,8 @@ , sfml , zip , zlib +, wrapGAppsHook3 +, gsettings-desktop-schemas }: stdenv.mkDerivation rec { @@ -26,7 +28,7 @@ stdenv.mkDerivation rec { sha256 = "sha256-t5/CM5KXDG0OCByu7mUyuC5NkYmB3BFmEHHgnMY05nE="; }; - nativeBuildInputs = [ cmake pkg-config ]; + nativeBuildInputs = [ cmake pkg-config wrapGAppsHook3 ]; buildInputs = [ cairo @@ -41,6 +43,7 @@ stdenv.mkDerivation rec { zlib wxGTK32 gtk3 + gsettings-desktop-schemas ]; cmakeFlags = [ @@ -56,5 +59,6 @@ stdenv.mkDerivation rec { maintainers = with maintainers; [ lassulus netali ]; homepage = "https://vba-m.com/"; platforms = lib.platforms.linux; + mainProgram = "visualboyadvance-m"; }; }