wrapGAppsHook: add comments

This commit is contained in:
Jan Tojnar 2020-07-24 00:36:12 +02:00
parent 49b89afcc2
commit 0be3b18d3e
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -12,9 +12,26 @@
}:
makeSetupHook {
deps = lib.optional (!stdenv.isDarwin) dconf.lib ++ [
deps = lib.optionals (!stdenv.isDarwin) [
# 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
# to avoid falling back to “memory” backend. This is
# required for GSettings-based settings to be persisted.
# Unfortunately, it also requires the user to have dconf
# D-Bus service enabled globally (e.g. through a NixOS module).
dconf.lib
] ++ [
# TODO: remove this, packages should depend on GTK explicitly.
gtk3
# librsvg provides a module for gdk-pixbuf to allow rendering
# SVG icons. Most icon themes are SVG-based and so are some
# graphics in GTK (e.g. cross for closing window in window title bar)
# so it is pretty much required for applications using GTK.
librsvg
# We use the wrapProgram function.
makeWrapper
];
substitutions = {