3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/libgweather/default.nix

43 lines
1.3 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, meson, ninja, pkgconfig, libxml2, glib, gtk3, gettext, libsoup
, gtk-doc, docbook_xsl, docbook_xml_dtd_43, gobject-introspection, python3, tzdata, geocode-glib, vala, gnome3 }:
stdenv.mkDerivation rec {
2018-03-13 23:48:27 +00:00
pname = "libgweather";
2018-06-14 17:26:40 +01:00
version = "3.28.2";
2018-03-13 23:48:27 +00:00
outputs = [ "out" "dev" "devdoc" ];
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2018-06-14 17:26:40 +01:00
sha256 = "0xfy5ghwvnz2g9074dy6512m4z2pv66pmja14vhi9imgacbfh708";
};
nativeBuildInputs = [ meson ninja pkgconfig gettext vala gtk-doc docbook_xsl docbook_xml_dtd_43 gobject-introspection python3 ];
buildInputs = [ glib gtk3 libsoup libxml2 geocode-glib ];
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
'';
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;
};
};
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;
maintainers = gnome3.maintainers;
2018-03-13 23:48:27 +00:00
platforms = platforms.linux;
};
}