19 , gobject-introspection
20 , withIntrospection ? lib.meta.availableOn stdenv.hostPlatform gobject-introspection && stdenv.hostPlatform.emulatorAvailable buildPackages
21 , withDocs ? withIntrospection
24 stdenv.mkDerivation rec {
28 outputs = [ "out" "lib" "dev" ]
29 ++ lib.optional withDocs "devdoc";
32 url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
33 sha256 = "0cs5nayg080y8pb9b7qccm1ni8wkicdmqp1jsgc22110r6j24zyg";
46 ] ++ lib.optionals (withDocs && !stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
47 mesonEmulatorHook # gtkdoc invokes the host binary to produce documentation
55 ] ++ lib.optionals withIntrospection [
61 (lib.mesonBool "gtk_doc" withDocs)
62 (lib.mesonBool "vapi" withIntrospection)
66 dbus # for dbus-daemon
69 doCheck = !stdenv.hostPlatform.isAarch32 && !stdenv.hostPlatform.isAarch64 && !stdenv.hostPlatform.isDarwin;
72 chmod +x meson_post_install.py tests/test-dconf.py
73 patchShebangs meson_post_install.py
74 patchShebangs tests/test-dconf.py
78 updateScript = gnome.updateScript {
80 versionPolicy = "odd-unstable";
82 tests = { inherit (nixosTests) dconf; };
86 homepage = "https://gitlab.gnome.org/GNOME/dconf";
87 license = licenses.lgpl21Plus;
88 platforms = platforms.unix;
89 maintainers = teams.gnome.members;
90 mainProgram = "dconf";