2018-12-02 12:41:15 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gnome3, gtk3, wrapGAppsHook, gjs, gobject-introspection
|
2019-04-17 02:38:26 +02:00
|
|
|
, libgweather, meson, ninja, geoclue2, gnome-desktop, python3, gsettings-desktop-schemas }:
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "gnome-weather";
|
2020-05-03 15:16:25 +02:00
|
|
|
version = "3.36.1";
|
2018-02-25 21:07:20 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-08-15 14:41:18 +02:00
|
|
|
url = "mirror://gnome/sources/gnome-weather/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-05-03 15:16:25 +02:00
|
|
|
sha256 = "11z75ky6xp9hx7lm24xng7ydr20bzh4d6p9sbi9c8ccz2m3fdrk8";
|
2018-02-25 21:07:20 +01:00
|
|
|
};
|
|
|
|
|
2019-03-03 19:56:08 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig meson ninja wrapGAppsHook python3 ];
|
2016-09-18 21:35:23 +02:00
|
|
|
buildInputs = [
|
2018-12-02 12:41:15 +01:00
|
|
|
gtk3 gjs gobject-introspection gnome-desktop
|
2019-04-17 02:38:26 +02:00
|
|
|
libgweather gnome3.adwaita-icon-theme geoclue2 gsettings-desktop-schemas
|
2016-09-18 21:35:23 +02:00
|
|
|
];
|
|
|
|
|
2019-03-03 19:56:08 +01:00
|
|
|
postPatch = ''
|
|
|
|
# The .service file is not wrapped with the correct environment
|
|
|
|
# so misses GIR files when started. By re-pointing from the gjs
|
|
|
|
# entry point to the wrapped binary we get back to a wrapped
|
|
|
|
# binary.
|
|
|
|
substituteInPlace "data/org.gnome.Weather.service.in" \
|
|
|
|
--replace "Exec=@DATA_DIR@/@APP_ID@" \
|
2017-06-25 18:59:23 +02:00
|
|
|
"Exec=$out/bin/gnome-weather"
|
2019-03-03 19:56:08 +01:00
|
|
|
|
|
|
|
chmod +x meson_post_install.py
|
|
|
|
patchShebangs meson_post_install.py
|
2017-06-25 18:59:23 +02:00
|
|
|
'';
|
|
|
|
|
2018-03-14 21:53:34 +01:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "gnome-weather";
|
|
|
|
attrPath = "gnome3.gnome-weather";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 21:35:23 +02:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://wiki.gnome.org/Apps/Weather";
|
2016-09-18 21:35:23 +02:00
|
|
|
description = "Access current weather conditions and forecasts";
|
2020-04-01 14:40:51 +02:00
|
|
|
maintainers = teams.gnome.members;
|
2016-09-18 21:35:23 +02:00
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|