3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/desktops/gnome-3/core/libgweather/default.nix

31 lines
1 KiB
Nix
Raw Normal View History

{ stdenv, fetchurl, pkgconfig, libxml2, gtk, intltool, libsoup, gconf
, pango, gdk_pixbuf, atk, tzdata, gnome3 }:
stdenv.mkDerivation rec {
name = "libgweather-${version}";
2018-03-13 01:03:18 +00:00
version = "3.28.0";
src = fetchurl {
url = "mirror://gnome/sources/libgweather/${gnome3.versionBranch version}/${name}.tar.xz";
2018-03-13 01:03:18 +00:00
sha256 = "13z12ra5fhn7xhsrskd7q8dnc2qnd1kylhndg6zlhk0brj6yfjsr";
};
passthru = {
updateScript = gnome3.updateScript { packageName = "libgweather"; attrPath = "gnome3.libgweather"; };
};
2017-10-04 22:50:14 +01:00
configureFlags = [ "--with-zoneinfo-dir=${tzdata}/share/zoneinfo" "--enable-vala" ];
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"
'';
meta = with stdenv.lib; {
platforms = platforms.linux;
maintainers = gnome3.maintainers;
};
}