2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitLab, meson, ninja, pkg-config, gobject-introspection, vala
|
2020-09-20 17:08:46 +00:00
|
|
|
, gtk-doc, docbook_xsl, docbook_xml_dtd_43
|
2022-03-16 21:16:40 +00:00
|
|
|
, gtk3, gnome-desktop
|
2021-05-08 13:45:03 +00:00
|
|
|
, dbus, xvfb-run, libxml2
|
2020-09-20 17:08:46 +00:00
|
|
|
, hicolor-icon-theme
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libhandy";
|
|
|
|
version = "0.0.13";
|
|
|
|
|
2020-11-17 17:13:36 +00:00
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
2020-09-20 17:08:46 +00:00
|
|
|
outputBin = "dev";
|
|
|
|
|
|
|
|
src = fetchFromGitLab {
|
|
|
|
domain = "source.puri.sm";
|
|
|
|
owner = "Librem5";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1y23k623sjkldfrdiwfarpchg5mg58smcy1pkgnwfwca15wm1ra5";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
2021-01-19 06:50:56 +00:00
|
|
|
meson ninja pkg-config gobject-introspection vala libxml2
|
2020-09-20 17:08:46 +00:00
|
|
|
gtk-doc docbook_xsl docbook_xml_dtd_43
|
|
|
|
];
|
2022-03-16 21:16:40 +00:00
|
|
|
buildInputs = [ gnome-desktop gtk3 libxml2 ];
|
2021-05-08 13:45:03 +00:00
|
|
|
checkInputs = [ dbus xvfb-run hicolor-icon-theme ];
|
2020-09-20 17:08:46 +00:00
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Dgtk_doc=true"
|
2020-11-17 17:13:36 +00:00
|
|
|
"-Dglade_catalog=disabled"
|
2020-09-20 17:08:46 +00:00
|
|
|
"-Dintrospection=enabled"
|
|
|
|
];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
NO_AT_BRIDGE=1 \
|
|
|
|
XDG_DATA_DIRS="$XDG_DATA_DIRS:${hicolor-icon-theme}/share" \
|
|
|
|
xvfb-run -s '-screen 0 800x600x24' dbus-run-session \
|
|
|
|
--config-file=${dbus.daemon}/share/dbus-1/session.conf \
|
|
|
|
meson test --print-errorlogs
|
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-09-20 17:08:46 +00:00
|
|
|
description = "A library full of GTK widgets for mobile phones";
|
|
|
|
homepage = "https://source.puri.sm/Librem5/libhandy";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = with maintainers; [ jtojnar ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|