nixpkgs/pkgs/desktops/mate/libmateweather/default.nix

33 lines
943 B
Nix
Raw Normal View History

2017-08-31 04:56:47 +02:00
{ stdenv, fetchurl, pkgconfig, intltool, gtk3, libsoup, tzdata }:
stdenv.mkDerivation rec {
name = "libmateweather-${version}";
version = "${major-ver}.${minor-ver}";
major-ver = "1.18";
2017-12-24 02:56:15 +01:00
minor-ver = "2";
2017-08-31 04:56:47 +02:00
src = fetchurl {
url = "http://pub.mate-desktop.org/releases/${major-ver}/${name}.tar.xz";
2017-12-24 02:56:15 +01:00
sha256 = "1q3rvmm533cgiif9hbdp6a92dm727g5i2dv5d8krfa0nl36i468y";
2017-08-31 04:56:47 +02:00
};
nativeBuildInputs = [ pkgconfig intltool ];
buildInputs = [ gtk3 libsoup tzdata ];
configureFlags = [
"--with-zoneinfo-dir=${tzdata}/share/zoneinfo"
"--enable-locations-compression"
];
2017-09-01 22:27:24 +02:00
preFixup = "rm -f $out/share/icons/mate/icon-theme.cache";
2017-08-31 04:56:47 +02:00
meta = with stdenv.lib; {
description = "Library to access weather information from online services for MATE";
homepage = https://github.com/mate-desktop/libmateweather;
license = licenses.gpl2;
platforms = platforms.unix;
maintainers = [ maintainers.romildo ];
};
}