2020-07-03 20:05:30 +02:00
|
|
|
{ stdenv
|
|
|
|
, fetchurl
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, pkgconfig
|
|
|
|
, gobject-introspection
|
|
|
|
, vala
|
|
|
|
, gtk-doc
|
|
|
|
, docbook_xsl
|
|
|
|
, docbook_xml_dtd_43
|
|
|
|
, gtk3
|
|
|
|
, gnome3
|
|
|
|
, glade
|
|
|
|
, dbus
|
|
|
|
, xvfb_run
|
|
|
|
, libxml2
|
|
|
|
, gdk-pixbuf
|
|
|
|
, librsvg
|
2019-01-20 20:39:00 +01:00
|
|
|
, hicolor-icon-theme
|
2020-11-04 01:07:10 +01:00
|
|
|
, at-spi2-atk
|
|
|
|
, at-spi2-core
|
2018-08-12 19:38:57 +02:00
|
|
|
}:
|
|
|
|
|
2019-08-31 10:04:20 +02:00
|
|
|
stdenv.mkDerivation rec {
|
2018-08-12 19:38:57 +02:00
|
|
|
pname = "libhandy";
|
2020-11-17 16:42:53 +01:00
|
|
|
version = "1.0.2";
|
2018-08-12 19:38:57 +02:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" "glade" ];
|
|
|
|
outputBin = "dev";
|
|
|
|
|
2020-07-03 20:05:30 +02:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-11-17 16:42:53 +01:00
|
|
|
sha256 = "0b8wvjabv5mg8jbng8rsd5g84lk571nm0qpna20pwp0njh2qvmrs";
|
2018-08-12 19:38:57 +02:00
|
|
|
};
|
|
|
|
|
2020-07-03 20:05:30 +02:00
|
|
|
nativeBuildInputs = [
|
|
|
|
docbook_xml_dtd_43
|
|
|
|
docbook_xsl
|
|
|
|
gobject-introspection
|
|
|
|
gtk-doc
|
|
|
|
libxml2
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkgconfig
|
|
|
|
vala
|
2020-05-15 18:29:11 +02:00
|
|
|
];
|
|
|
|
|
2020-07-03 20:05:30 +02:00
|
|
|
buildInputs = [
|
|
|
|
gdk-pixbuf
|
|
|
|
glade
|
|
|
|
gtk3
|
|
|
|
libxml2
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
dbus
|
|
|
|
xvfb_run
|
2020-11-04 01:07:10 +01:00
|
|
|
at-spi2-atk
|
|
|
|
at-spi2-core
|
|
|
|
librsvg
|
|
|
|
hicolor-icon-theme
|
2018-08-12 19:38:57 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dgtk_doc=true"
|
|
|
|
];
|
|
|
|
|
2020-07-03 20:05:30 +02:00
|
|
|
# Uses define_variable in pkgconfig, but we still need it to use the glade output
|
2018-08-12 19:38:57 +02:00
|
|
|
PKG_CONFIG_GLADEUI_2_0_MODULEDIR = "${placeholder "glade"}/lib/glade/modules";
|
|
|
|
PKG_CONFIG_GLADEUI_2_0_CATALOGDIR = "${placeholder "glade"}/share/glade/catalogs";
|
|
|
|
|
2020-11-04 01:07:10 +01:00
|
|
|
doCheck = true;
|
2018-08-12 19:38:57 +02:00
|
|
|
|
|
|
|
checkPhase = ''
|
2019-02-11 03:40:18 +01:00
|
|
|
NO_AT_BRIDGE=1 \
|
2020-11-04 01:07:10 +01:00
|
|
|
XDG_DATA_DIRS="$XDG_DATA_DIRS:${hicolor-icon-theme}/share" \
|
2020-07-03 20:05:30 +02:00
|
|
|
GDK_PIXBUF_MODULE_FILE="${librsvg.out}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache" \
|
2018-08-12 19:38:57 +02:00
|
|
|
xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
|
|
|
|
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
|
|
|
|
meson test --print-errorlogs
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2020-07-03 20:05:30 +02:00
|
|
|
changelog = "https://gitlab.gnome.org/GNOME/libhandy/-/tags/${version}";
|
|
|
|
description = "Building blocks for modern adaptive GNOME apps";
|
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/libhandy";
|
2018-08-12 19:38:57 +02:00
|
|
|
license = licenses.lgpl21Plus;
|
2020-07-03 20:05:30 +02:00
|
|
|
maintainers = teams.gnome.members;
|
2018-08-12 19:38:57 +02:00
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|