5 , gobject-introspection
7 , withIntrospection ? lib.meta.availableOn stdenv.hostPlatform gobject-introspection && stdenv.hostPlatform.emulatorAvailable buildPackages
14 stdenv.mkDerivation rec {
15 pname = "gsettings-desktop-schemas";
19 url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
20 hash = "sha256-pgIE2cnAobJk1tDRNKODQLpfxgdqNLhNqUXYv8x6KBU=";
24 depsBuildBuild = [ pkg-config ];
30 ] ++ lib.optionals withIntrospection [
35 (lib.mesonBool "introspection" withIntrospection)
39 # Meson installs the schemas to share/glib-2.0/schemas
40 # We add the override file there too so it will be compiled and later moved by
42 mkdir -p $out/share/glib-2.0/schemas
43 cat - > $out/share/glib-2.0/schemas/remove-backgrounds.gschema.override <<- EOF
44 # These paths are supposed to refer to gnome-backgrounds
45 # but since we do not use FHS, they are broken.
46 # And we do not want to hardcode the correct paths
47 # since then every GTK app would pull in gnome-backgrounds.
48 # Let’s just override the broken paths so that people are not confused.
49 [org.gnome.desktop.background]
53 [org.gnome.desktop.screensaver]
59 updateScript = gnome.updateScript {
65 homepage = "https://gitlab.gnome.org/GNOME/gsettings-desktop-schemas";
66 description = "Collection of GSettings schemas for settings shared by various components of a desktop";
67 license = licenses.lgpl21Plus;
68 maintainers = teams.gnome.members;