2016-09-18 20:35:23 +01:00
|
|
|
{ stdenv, fetchurl, pkgconfig, libxml2, gtk, intltool, libsoup, gconf
|
|
|
|
, pango, gdk_pixbuf, atk, tzdata, gnome3 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-25 20:07:20 +00:00
|
|
|
name = "libgweather-${version}";
|
2018-03-13 01:03:18 +00:00
|
|
|
version = "3.28.0";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/libgweather/${gnome3.versionBranch version}/${name}.tar.xz";
|
2018-03-13 01:03:18 +00:00
|
|
|
sha256 = "13z12ra5fhn7xhsrskd7q8dnc2qnd1kylhndg6zlhk0brj6yfjsr";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = gnome3.updateScript { packageName = "libgweather"; attrPath = "gnome3.libgweather"; };
|
|
|
|
};
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2017-10-04 22:50:14 +01:00
|
|
|
configureFlags = [ "--with-zoneinfo-dir=${tzdata}/share/zoneinfo" "--enable-vala" ];
|
2018-02-25 02:23:58 +00:00
|
|
|
propagatedBuildInputs = [ libxml2 gtk libsoup gconf pango gdk_pixbuf atk gnome3.geocode-glib ];
|
2017-10-04 22:50:14 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig intltool gnome3.vala ];
|
|
|
|
|
|
|
|
# Prevent building vapi into ${vala} derivation directory
|
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace libgweather/Makefile.in --replace "\$(DESTDIR)\$(vapidir)" "\$(DESTDIR)\$(girdir)/../vala/vapi"
|
|
|
|
'';
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = gnome3.maintainers;
|
|
|
|
};
|
|
|
|
}
|