From 1d5367b56317fd1de9f9fc2db3e0eb8d0ae4afe4 Mon Sep 17 00:00:00 2001 From: "nix-backports[bot]" <190413589+nix-backports[bot]@users.noreply.github.com> Date: Sun, 22 Dec 2024 20:49:26 -0500 Subject: [PATCH] [Backport release-24.11] mangojuice: fix GTK4 paths (#367517) mangojuice: fix GTK4 paths (#366578) Fixes issues finding GTK4 dependencies, e.g: GLib-GIO-ERROR **: 15:02:46.139: No GSettings schemas are installed on the system GLib-GIO-ERROR **: 15:05:00.514: Settings schema 'org.gtk.gtk4.Settings.ColorChooser' is not installed (cherry picked from commit 24f0fd5a2a9dff054f36200e87cb0be9f0ca5e8b) Co-authored-by: Calum MacRae --- pkgs/by-name/ma/mangojuice/package.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/by-name/ma/mangojuice/package.nix b/pkgs/by-name/ma/mangojuice/package.nix index 297e733637f4df..f60517cea1f4f6 100644 --- a/pkgs/by-name/ma/mangojuice/package.nix +++ b/pkgs/by-name/ma/mangojuice/package.nix @@ -12,6 +12,7 @@ libadwaita, glib, libgee, + wrapGAppsHook4, mangohud, mesa-demos, @@ -37,6 +38,7 @@ stdenv.mkDerivation (finalAttrs: { vala pkg-config makeBinaryWrapper + wrapGAppsHook4 ]; buildInputs = [ @@ -47,6 +49,7 @@ stdenv.mkDerivation (finalAttrs: { ]; strictDeps = true; + dontWrapGApps = true; postFixup = let @@ -58,7 +61,8 @@ stdenv.mkDerivation (finalAttrs: { in '' wrapProgram $out/bin/mangojuice \ - --prefix PATH : ${path} + --prefix PATH : ${path} \ + "''${gappsWrapperArgs[@]}" ''; passthru.updateScript = nix-update-script { };