libchamplain: add updateScript

This commit is contained in:
Jan Tojnar 2018-03-03 03:43:23 +01:00
parent dece1166c2
commit 5ed7f2f616
No known key found for this signature in database
GPG Key ID: 7FAB2A15F7A607A4

View File

@ -1,37 +1,43 @@
{ fetchurl, stdenv, pkgconfig, glib, gtk3, cairo, clutter, sqlite { fetchurl, stdenv, pkgconfig, glib, gtk3, cairo, clutter, sqlite, gnome3
, clutter-gtk, libsoup, gobjectIntrospection /*, libmemphis */ }: , clutter-gtk, libsoup, gobjectIntrospection /*, libmemphis */ }:
let
pname = "libchamplain";
version = "0.12.16";
in
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
major = "0.12"; name = "${pname}-${version}";
version = "${major}.16";
name = "libchamplain-${version}";
src = fetchurl { src = fetchurl {
url = "mirror://gnome/sources/libchamplain/${major}/${name}.tar.xz"; url = "mirror://gnome/sources/${pname}/${gnome3.versionBranch version}/${name}.tar.xz";
sha256 = "13chvc2n074i0jw5jlb8i7cysda4yqx58ca6y3mrlrl9g37k2zja"; sha256 = "13chvc2n074i0jw5jlb8i7cysda4yqx58ca6y3mrlrl9g37k2zja";
}; };
nativeBuildInputs = [ pkgconfig ]; nativeBuildInputs = [ pkgconfig gobjectIntrospection ];
buildInputs = [ gobjectIntrospection ];
propagatedBuildInputs = [ glib gtk3 cairo clutter-gtk sqlite libsoup ]; propagatedBuildInputs = [ glib gtk3 cairo clutter-gtk sqlite libsoup ];
passthru = {
updateScript = gnome3.updateScript {
packageName = pname;
};
};
meta = with stdenv.lib; { meta = with stdenv.lib; {
inherit version; homepage = https://wiki.gnome.org/Projects/libchamplain;
homepage = http://projects.gnome.org/libchamplain/;
license = licenses.lgpl2Plus; license = licenses.lgpl2Plus;
description = "C library providing a ClutterActor to display maps"; description = "C library providing a ClutterActor to display maps";
longDescription = longDescription = ''
'' libchamplain is a C library providing a ClutterActor to display libchamplain is a C library providing a ClutterActor to display
maps. It also provides a Gtk+ widget to display maps in Gtk+ maps. It also provides a Gtk+ widget to display maps in Gtk+
applications. Python and Perl bindings are also available. It applications. Python and Perl bindings are also available. It
supports numerous free map sources such as OpenStreetMap, supports numerous free map sources such as OpenStreetMap,
OpenCycleMap, OpenAerialMap, and Maps for free. OpenCycleMap, OpenAerialMap, and Maps for free.
''; '';
maintainers = [ ]; maintainers = gnome3.maintainers;
platforms = platforms.gnu; # arbitrary choice platforms = platforms.gnu; # arbitrary choice
}; };
} }