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

83 lines
1.5 KiB
Nix
Raw Normal View History

2021-04-12 23:45:54 +01:00
{ lib
, stdenv
, fetchurl
, meson
, ninja
, pkg-config
, libxml2
, glib
, gtk3
, gettext
, libsoup
, gtk-doc
, docbook-xsl-nons
, docbook_xml_dtd_43
, gobject-introspection
, python3
, tzdata
, geocode-glib
, vala
, gnome
2021-04-12 23:45:54 +01:00
}:
stdenv.mkDerivation rec {
2018-03-13 23:48:27 +00:00
pname = "libgweather";
2021-03-21 07:30:14 +00:00
version = "40.0";
2018-03-13 23:48:27 +00:00
outputs = [ "out" "dev" "devdoc" ];
src = fetchurl {
2021-03-21 07:30:14 +00:00
url = "mirror://gnome/sources/${pname}/${lib.versions.major version}/${pname}-${version}.tar.xz";
sha256 = "1rkf4yv43qcahyx7bismdv6z2vh5azdnm1fqfmnzrada9cm8ykna";
};
2021-04-12 23:45:54 +01:00
nativeBuildInputs = [
meson
ninja
pkg-config
gettext
vala
gtk-doc
docbook-xsl-nons
docbook_xml_dtd_43
gobject-introspection
python3
2021-03-21 07:30:14 +00:00
python3.pkgs.pygobject3
2021-04-12 23:45:54 +01:00
];
2021-04-12 23:45:54 +01:00
buildInputs = [
glib
gtk3
libsoup
libxml2
geocode-glib
];
2018-03-13 23:48:27 +00:00
mesonFlags = [
"-Dzoneinfo_dir=${tzdata}/share/zoneinfo"
"-Denable_vala=true"
"-Dgtk_doc=true"
];
2021-04-12 23:45:54 +01:00
postPatch = ''
chmod +x meson/meson_post_install.py
patchShebangs meson/meson_post_install.py
2021-03-21 07:30:14 +00:00
patchShebangs data/gen_locations_variant.py
2021-04-12 23:45:54 +01:00
'';
2018-03-13 23:48:27 +00:00
passthru = {
updateScript = gnome.updateScript {
2018-03-13 23:48:27 +00:00
packageName = pname;
versionPolicy = "odd-unstable";
2018-03-13 23:48:27 +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";
homepage = "https://wiki.gnome.org/Projects/LibGWeather";
2018-03-13 23:48:27 +00:00
license = licenses.gpl2Plus;
maintainers = teams.gnome.members;
2018-03-13 23:48:27 +00:00
platforms = platforms.linux;
};
}