1{ fetchurl, stdenv, pkgconfig, glib, gtk3, cairo, sqlite, gnome3
2, clutter-gtk, libsoup, gobjectIntrospection /*, libmemphis */ }:
3
4let
5 pname = "libchamplain";
6 version = "0.12.16";
7in
8stdenv.mkDerivation rec {
9 name = "${pname}-${version}";
10
11 src = fetchurl {
12 url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
13 sha256 = "13chvc2n074i0jw5jlb8i7cysda4yqx58ca6y3mrlrl9g37k2zja";
14 };
15
16 nativeBuildInputs = [ pkgconfig gobjectIntrospection ];
17
18 propagatedBuildInputs = [ glib gtk3 cairo clutter-gtk sqlite libsoup ];
19
20 passthru = {
21 updateScript = gnome3.updateScript {
22 packageName = pname;
23 };
24 };
25
26 meta = with stdenv.lib; {
27 homepage = https://wiki.gnome.org/Projects/libchamplain;
28 license = licenses.lgpl2Plus;
29
30 description = "C library providing a ClutterActor to display maps";
31
32 longDescription = ''
33 libchamplain is a C library providing a ClutterActor to display
34 maps. It also provides a Gtk+ widget to display maps in Gtk+
35 applications. Python and Perl bindings are also available. It
36 supports numerous free map sources such as OpenStreetMap,
37 OpenCycleMap, OpenAerialMap, and Maps for free.
38 '';
39
40 maintainers = gnome3.maintainers;
41 platforms = platforms.gnu ++ platforms.linux; # arbitrary choice
42 };
43}