From 160c79845e7ace59f2c6f3efc7f29f8684be341f Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Sun, 9 Feb 2025 11:49:17 +0100 Subject: [PATCH] wrapGAppsNoGuiHook: only use dconf if available Better have as much as possible working than an eval failure. --- pkgs/build-support/setup-hooks/wrap-gapps-hook/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/build-support/setup-hooks/wrap-gapps-hook/default.nix b/pkgs/build-support/setup-hooks/wrap-gapps-hook/default.nix index df134ddd63cc..0ff6305fe5de 100644 --- a/pkgs/build-support/setup-hooks/wrap-gapps-hook/default.nix +++ b/pkgs/build-support/setup-hooks/wrap-gapps-hook/default.nix @@ -8,6 +8,7 @@ gtk3, librsvg, dconf, + withDconf ? !stdenv.targetPlatform.isDarwin && lib.meta.availableOn stdenv.targetPlatform dconf, callPackage, wrapGAppsHook3, targetPackages, @@ -41,7 +42,7 @@ makeSetupHook { # TODO: remove this, packages should depend on GTK explicitly. gtk3 ] - ++ lib.optionals (!stdenv.hostPlatform.isDarwin) [ + ++ lib.optionals withDconf [ # It is highly probable that a program will use GSettings, # at minimum through GTK file chooser dialogue. # Let’s add a GIO module for “dconf” GSettings backend