2021-05-07 22:18:14 +01:00
|
|
|
{ lib, stdenv, fetchurl, meson, ninja, pkg-config, glib, gobject-introspection, flex, bison, vala, gettext, gnome, gtk-doc, docbook_xsl, docbook_xml_dtd_43 }:
|
2017-12-31 14:47:36 +00:00
|
|
|
let
|
2022-03-18 23:23:53 +00:00
|
|
|
version = "3.34.1";
|
2017-12-31 14:47:36 +00:00
|
|
|
pname = "template-glib";
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-21 17:00:13 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2022-03-18 23:23:53 +00:00
|
|
|
sha256 = "nsm3HgTU9csU91XveQYxzQtFwGA+Ecg2/Hz9niaM0Ho=";
|
2017-12-31 14:47:36 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
buildInputs = [ meson ninja pkg-config gettext flex bison vala glib gtk-doc docbook_xsl docbook_xml_dtd_43 ];
|
2018-12-02 11:41:15 +00:00
|
|
|
nativeBuildInputs = [ glib gobject-introspection ];
|
2017-12-31 14:47:36 +00:00
|
|
|
|
|
|
|
mesonFlags = [
|
|
|
|
"-Denable_gtk_doc=true"
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru = {
|
2021-05-07 22:18:14 +01:00
|
|
|
updateScript = gnome.updateScript {
|
2017-12-31 14:47:36 +00:00
|
|
|
packageName = pname;
|
2021-03-20 23:57:24 +00:00
|
|
|
versionPolicy = "odd-unstable";
|
2017-12-31 14:47:36 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2017-12-31 14:47:36 +00:00
|
|
|
description = "A library for template expansion which supports calling into GObject Introspection from templates";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://gitlab.gnome.org/GNOME/template-glib";
|
2017-12-31 14:47:36 +00:00
|
|
|
license = licenses.lgpl21Plus;
|
2020-04-01 13:40:51 +01:00
|
|
|
maintainers = teams.gnome.members;
|
2017-12-31 14:47:36 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|