2018-12-02 03:41:15 -08:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gnome3, gtk3, wrapGAppsHook, gjs, gobject-introspection
|
2019-03-03 10:56:08 -08:00
|
|
|
, libgweather, meson, ninja, geoclue2, gnome-desktop, python3 }:
|
2016-09-18 12:35:23 -07:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-25 12:07:20 -08:00
|
|
|
name = "gnome-weather-${version}";
|
2019-04-13 05:48:06 -07:00
|
|
|
version = "3.32.1";
|
2018-02-25 12:07:20 -08:00
|
|
|
|
|
|
|
src = fetchurl {
|
2018-10-04 17:12:11 -07:00
|
|
|
url = "mirror://gnome/sources/gnome-weather/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2019-04-13 05:48:06 -07:00
|
|
|
sha256 = "0xhfnm358hnbjiw084b732aalzdwyvyaqpabkplw81li9k4bmw54";
|
2018-02-25 12:07:20 -08:00
|
|
|
};
|
|
|
|
|
2019-03-03 10:56:08 -08:00
|
|
|
nativeBuildInputs = [ pkgconfig meson ninja wrapGAppsHook python3 ];
|
2016-09-18 12:35:23 -07:00
|
|
|
buildInputs = [
|
2018-12-02 03:41:15 -08:00
|
|
|
gtk3 gjs gobject-introspection gnome-desktop
|
2019-02-13 13:47:50 -08:00
|
|
|
libgweather gnome3.adwaita-icon-theme geoclue2 gnome3.gsettings-desktop-schemas
|
2016-09-18 12:35:23 -07:00
|
|
|
];
|
|
|
|
|
2019-03-03 10:56:08 -08: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 09:59:23 -07:00
|
|
|
"Exec=$out/bin/gnome-weather"
|
2019-03-03 10:56:08 -08:00
|
|
|
|
|
|
|
chmod +x meson_post_install.py
|
|
|
|
patchShebangs meson_post_install.py
|
2017-06-25 09:59:23 -07:00
|
|
|
'';
|
|
|
|
|
2018-03-14 13:53:34 -07:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "gnome-weather";
|
|
|
|
attrPath = "gnome3.gnome-weather";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 12:35:23 -07:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://wiki.gnome.org/Apps/Weather;
|
|
|
|
description = "Access current weather conditions and forecasts";
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|