dconf: fix building without emulation available

For example, Linux → FreeBSD.
This commit is contained in:
Alyssa Ross
2024-10-10 12:40:46 +02:00
parent 2c7cf748ec
commit 63d46aaac4
+7 -2
View File
@@ -15,7 +15,10 @@
, docbook-xsl-nons
, docbook_xml_dtd_42
, nixosTests
, withDocs ? true
, buildPackages
, gobject-introspection
, withIntrospection ? lib.meta.availableOn stdenv.hostPlatform gobject-introspection && stdenv.hostPlatform.emulatorAvailable buildPackages
, withDocs ? withIntrospection
}:
stdenv.mkDerivation rec {
@@ -49,12 +52,14 @@ stdenv.mkDerivation rec {
glib
bash-completion
dbus
] ++ lib.optionals withIntrospection [
vala
];
mesonFlags = [
"--sysconfdir=/etc"
"-Dgtk_doc=${lib.boolToString withDocs}"
(lib.mesonBool "gtk_doc" withDocs)
(lib.mesonBool "vapi" withIntrospection)
];
nativeCheckInputs = [