wrapGAppsNoGuiHook: only use dconf if available

Better have as much as possible working than an eval failure.
This commit is contained in:
Alyssa Ross
2025-02-11 01:30:34 +01:00
committed by sternenseemann
parent 2e1dc0c979
commit 160c79845e
@@ -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.
# Lets add a GIO module for “dconf” GSettings backend