Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

libchamplain: add updateScript

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