2018-03-13 23:48:27 +00:00
|
|
|
{ stdenv, fetchurl, meson, ninja, pkgconfig, libxml2, glib, gtk, gettext, libsoup
|
|
|
|
, gtk-doc, docbook_xsl, gobjectIntrospection, tzdata, geocode-glib, vala, gnome3 }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2018-03-13 23:48:27 +00:00
|
|
|
let
|
|
|
|
pname = "libgweather";
|
2018-03-13 01:03:18 +00:00
|
|
|
version = "3.28.0";
|
2018-03-13 23:48:27 +00:00
|
|
|
in stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-03-13 23:48:27 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
|
2018-03-13 01:03:18 +00:00
|
|
|
sha256 = "13z12ra5fhn7xhsrskd7q8dnc2qnd1kylhndg6zlhk0brj6yfjsr";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2018-03-13 23:48:27 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkgconfig gettext vala gtk-doc docbook_xsl gobjectIntrospection ];
|
|
|
|
buildInputs = [ glib gtk libsoup libxml2 geocode-glib ];
|
2016-09-18 20:35:23 +01: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 22:50:14 +01:00
|
|
|
'';
|
2016-09-18 20:35:23 +01: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;
|
|
|
|
attrPath = "gnome3.${pname}";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 20:35:23 +01:00
|
|
|
meta = with stdenv.lib; {
|
2018-03-13 23:48:27 +00: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 20:35:23 +01:00
|
|
|
maintainers = gnome3.maintainers;
|
2018-03-13 23:48:27 +00:00
|
|
|
platforms = platforms.linux;
|
2016-09-18 20:35:23 +01:00
|
|
|
};
|
|
|
|
}
|