2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchurl, meson, ninja, pkg-config, libxml2, glib, gtk3, gettext, libsoup
|
2018-12-02 11:41:15 +00:00
|
|
|
, gtk-doc, docbook_xsl, docbook_xml_dtd_43, gobject-introspection, python3, tzdata, geocode-glib, vala, gnome3 }:
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2018-12-25 16:33:21 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2018-03-13 23:48:27 +00:00
|
|
|
pname = "libgweather";
|
2020-07-03 20:20:34 +00:00
|
|
|
version = "3.36.1";
|
2018-03-13 23:48:27 +00:00
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-21 17:00:13 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-07-03 20:20:34 +00:00
|
|
|
sha256 = "0l74hc02rvzm4p530y539a67jwb080fqdaazdl8j0fr3xvq0j9yy";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config gettext vala gtk-doc docbook_xsl docbook_xml_dtd_43 gobject-introspection python3 ];
|
2018-12-25 16:33:21 +00:00
|
|
|
buildInputs = [ glib gtk3 libsoup libxml2 geocode-glib ];
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2018-03-13 23:48:27 +00:00
|
|
|
postPatch = ''
|
|
|
|
chmod +x meson/meson_post_install.py
|
|
|
|
patchShebangs meson/meson_post_install.py
|
2017-10-04 21:50:14 +00:00
|
|
|
'';
|
2016-09-18 19:35:23 +00:00
|
|
|
|
2018-03-13 23:48:27 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dzoneinfo_dir=${tzdata}/share/zoneinfo"
|
|
|
|
"-Denable_vala=true"
|
|
|
|
"-Dgtk_doc=true"
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = pname;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2018-03-13 23:48:27 +00:00
|
|
|
description = "A library to access weather information from online services for numerous locations";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://wiki.gnome.org/Projects/LibGWeather";
|
2018-03-13 23:48:27 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-01 12:40:51 +00:00
|
|
|
maintainers = teams.gnome.members;
|
2018-03-13 23:48:27 +00:00
|
|
|
platforms = platforms.linux;
|
2016-09-18 19:35:23 +00:00
|
|
|
};
|
|
|
|
}
|