2018-12-02 11:41:15 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, gnome3, gtk3, wrapGAppsHook, gjs, gobject-introspection
|
2018-03-14 20:53:34 +00:00
|
|
|
, libgweather, intltool, itstool, geoclue2, gnome-desktop }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-25 20:07:20 +00:00
|
|
|
name = "gnome-weather-${version}";
|
|
|
|
version = "3.26.0";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2018-10-05 01:12:11 +01:00
|
|
|
url = "mirror://gnome/sources/gnome-weather/${stdenv.lib.versions.majorMinor version}/${name}.tar.xz";
|
2018-02-25 20:07:20 +00:00
|
|
|
sha256 = "965cc0d1b4d4e53c06d494db96f0b124d232af5c0e731ca900edd10f77a74c78";
|
|
|
|
};
|
|
|
|
|
2018-03-14 20:53:34 +00:00
|
|
|
nativeBuildInputs = [ pkgconfig intltool itstool wrapGAppsHook ];
|
2016-09-18 20:35:23 +01:00
|
|
|
buildInputs = [
|
2018-12-02 11:41:15 +00:00
|
|
|
gtk3 gjs gobject-introspection gnome-desktop
|
2019-02-13 21:47:50 +00:00
|
|
|
libgweather gnome3.adwaita-icon-theme geoclue2 gnome3.gsettings-desktop-schemas
|
2016-09-18 20:35:23 +01:00
|
|
|
];
|
|
|
|
|
2017-06-25 17:59:23 +01:00
|
|
|
# The .service file isn't 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.
|
|
|
|
preConfigure = ''
|
|
|
|
substituteInPlace "data/org.gnome.Weather.Application.service.in" \
|
|
|
|
--replace "Exec=@pkgdatadir@/@PACKAGE_NAME@.Application" \
|
|
|
|
"Exec=$out/bin/gnome-weather"
|
|
|
|
'';
|
|
|
|
|
2018-03-14 20:53:34 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "gnome-weather";
|
|
|
|
attrPath = "gnome3.gnome-weather";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2016-09-18 20:35:23 +01: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;
|
|
|
|
};
|
|
|
|
}
|