nixpkgs/pkgs/development/libraries/template-glib/default.nix

37 lines
1.1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, meson, ninja, pkg-config, glib, gobject-introspection, flex, bison, vala, gettext, gnome3, gtk-doc, docbook_xsl, docbook_xml_dtd_43 }:
2017-12-31 14:47:36 +00:00
let
2019-11-03 07:47:42 +00:00
version = "3.34.0";
2017-12-31 14:47:36 +00:00
pname = "template-glib";
in
stdenv.mkDerivation {
name = "${pname}-${version}";
outputs = [ "out" "dev" "devdoc" ];
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2019-11-03 07:47:42 +00:00
sha256 = "1z9xkin5fyfh071ma9y045jcw83hgx33dfbjraw6cxk0qdmfysr1";
2017-12-31 14:47:36 +00:00
};
buildInputs = [ meson ninja pkg-config gettext flex bison vala glib gtk-doc docbook_xsl docbook_xml_dtd_43 ];
nativeBuildInputs = [ glib gobject-introspection ];
2017-12-31 14:47:36 +00:00
mesonFlags = [
"-Denable_gtk_doc=true"
];
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
};
};
meta = with stdenv.lib; {
description = "A library for template expansion which supports calling into GObject Introspection from templates";
homepage = "https://gitlab.gnome.org/GNOME/template-glib";
2017-12-31 14:47:36 +00:00
license = licenses.lgpl21Plus;
maintainers = teams.gnome.members;
2017-12-31 14:47:36 +00:00
platforms = platforms.unix;
};
}