2018-12-02 11:41:15 +00:00
|
|
|
{ stdenv, fetchurl, ninja, meson, pkgconfig, vala, gobject-introspection, libxml2
|
2018-09-05 00:50:16 +00:00
|
|
|
, gtk-doc, docbook_xsl, docbook_xml_dtd_43, glibcLocales, dbus, xvfb_run, glib, gtk3, gnome3 }:
|
2017-12-31 14:47:05 +00:00
|
|
|
|
|
|
|
let
|
2019-08-04 15:49:30 +00:00
|
|
|
version = "3.32.3";
|
2017-12-31 14:47:05 +00:00
|
|
|
pname = "libdazzle";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
outputBin = "dev";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/libdazzle/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2019-08-04 15:49:30 +00:00
|
|
|
sha256 = "1s37hv12ikfzhvh86qzgmfcjm3wvp12l2vsr0whl5xmm2harp3bc";
|
2017-12-31 14:47:05 +00:00
|
|
|
};
|
|
|
|
|
2018-12-02 11:41:15 +00:00
|
|
|
nativeBuildInputs = [ ninja meson pkgconfig vala gobject-introspection libxml2 gtk-doc docbook_xsl docbook_xml_dtd_43 glibcLocales dbus xvfb_run ];
|
2017-12-31 14:47:05 +00:00
|
|
|
buildInputs = [ glib gtk3 ];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Denable_gtk_doc=true"
|
|
|
|
];
|
|
|
|
|
2018-09-05 00:50:16 +00:00
|
|
|
LC_ALL = "en_US.UTF-8";
|
|
|
|
|
|
|
|
# https://gitlab.gnome.org/GNOME/libdazzle/issues/25
|
|
|
|
doCheck = false;
|
2017-12-31 14:47:05 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
export NO_AT_BRIDGE=1
|
|
|
|
xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
|
|
|
|
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
|
|
|
|
meson test --print-errorlogs
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A library to delight your users with fancy features";
|
|
|
|
longDescription = ''
|
2019-09-03 22:49:40 +00:00
|
|
|
The libdazzle library is a companion library to GObject and GTK. It
|
2017-12-31 14:47:05 +00:00
|
|
|
provides various features that we wish were in the underlying library but
|
|
|
|
cannot for various reasons. In most cases, they are wildly out of scope
|
|
|
|
for those libraries. In other cases, our design isn't quite generic
|
|
|
|
enough to work for everyone.
|
|
|
|
'';
|
|
|
|
homepage = https://wiki.gnome.org/Apps/Builder;
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|