2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, python3
|
|
|
|
, vala
|
|
|
|
, libxslt
|
|
|
|
, pkg-config
|
|
|
|
, glib
|
|
|
|
, bash-completion
|
|
|
|
, dbus
|
2021-05-20 23:08:51 +00:00
|
|
|
, gnome
|
2020-04-24 23:36:52 +00:00
|
|
|
, gtk-doc
|
|
|
|
, docbook-xsl-nons
|
|
|
|
, docbook_xml_dtd_42
|
|
|
|
}:
|
2021-01-15 22:18:51 +00:00
|
|
|
let
|
|
|
|
isCross = (stdenv.hostPlatform != stdenv.buildPlatform);
|
|
|
|
in
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "dconf";
|
2021-05-20 23:08:51 +00:00
|
|
|
version = "0.40.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
outputs = [ "out" "lib" "dev" ]
|
2021-02-05 17:12:51 +00:00
|
|
|
++ lib.optional (!isCross) "devdoc";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-02-05 17:12:51 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2021-05-20 23:08:51 +00:00
|
|
|
sha256 = "0cs5nayg080y8pb9b7qccm1ni8wkicdmqp1jsgc22110r6j24zyg";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
python3
|
|
|
|
libxslt
|
|
|
|
glib
|
|
|
|
docbook-xsl-nons
|
|
|
|
docbook_xml_dtd_42
|
2021-02-05 17:12:51 +00:00
|
|
|
] ++ lib.optional (!isCross) gtk-doc;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
glib
|
|
|
|
bash-completion
|
|
|
|
dbus
|
2021-02-05 17:12:51 +00:00
|
|
|
] ++ lib.optional (!isCross) vala;
|
2021-01-15 22:18:51 +00:00
|
|
|
# Vala cross compilation is broken. For now, build dconf without vapi when cross-compiling.
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"--sysconfdir=/etc"
|
2021-02-05 17:12:51 +00:00
|
|
|
"-Dgtk_doc=${lib.boolToString (!isCross)}" # gtk-doc does do some gobject introspection, which doesn't yet cross-compile.
|
|
|
|
] ++ lib.optional isCross "-Dvapi=false";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
checkInputs = [
|
|
|
|
dbus # for dbus-daemon
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = !stdenv.isAarch32 && !stdenv.isAarch64 && !stdenv.isDarwin;
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson_post_install.py tests/test-dconf.py
|
|
|
|
patchShebangs meson_post_install.py
|
|
|
|
patchShebangs tests/test-dconf.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
2021-05-20 23:08:51 +00:00
|
|
|
updateScript = gnome.updateScript {
|
2020-04-24 23:36:52 +00:00
|
|
|
packageName = pname;
|
2021-05-20 23:08:51 +00:00
|
|
|
versionPolicy = "odd-unstable";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Projects/dconf";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = teams.gnome.members;
|
|
|
|
};
|
|
|
|
}
|