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