2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, ninja, meson, pkg-config, vala, gobject-introspection, libxml2
|
2021-05-08 14:45:03 +01:00
|
|
|
, gtk-doc, docbook_xsl, docbook_xml_dtd_43, dbus, xvfb-run, glib, gtk3, gnome }:
|
2017-12-31 14:47:05 +00:00
|
|
|
|
2019-09-02 17:45:38 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2017-12-31 14:47:05 +00:00
|
|
|
pname = "libdazzle";
|
2021-03-21 01:21:01 +00:00
|
|
|
version = "3.40.0";
|
2017-12-31 14:47:05 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
outputBin = "dev";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-21 17:00:13 +00:00
|
|
|
url = "mirror://gnome/sources/libdazzle/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2021-03-21 01:21:01 +00:00
|
|
|
sha256 = "19abrrjsyjhhl1xflnb0likb9wwzz78fa1mk2b064rpscmz9mafv";
|
2017-12-31 14:47:05 +00:00
|
|
|
};
|
|
|
|
|
2021-05-08 14:45:03 +01:00
|
|
|
nativeBuildInputs = [ ninja meson pkg-config vala gobject-introspection libxml2 gtk-doc docbook_xsl docbook_xml_dtd_43 dbus xvfb-run glib ];
|
2017-12-31 14:47:05 +00:00
|
|
|
buildInputs = [ glib gtk3 ];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Denable_gtk_doc=true"
|
|
|
|
];
|
|
|
|
|
2019-09-02 17:45:38 +01:00
|
|
|
doCheck = true;
|
2017-12-31 14:47:05 +00:00
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
|
|
|
|
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
|
|
|
|
meson test --print-errorlogs
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru = {
|
2021-05-07 22:18:14 +01:00
|
|
|
updateScript = gnome.updateScript {
|
2017-12-31 14:47:05 +00:00
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2017-12-31 14:47:05 +00:00
|
|
|
description = "A library to delight your users with fancy features";
|
|
|
|
longDescription = ''
|
2019-09-03 23:49:40 +01: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.
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Builder";
|
2017-12-31 14:47:05 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2020-04-01 13:40:51 +01:00
|
|
|
maintainers = teams.gnome.members;
|
2017-12-31 14:47:05 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|