tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
0
fork
atom
overview
issues
pulls
pipelines
libchamplain: add updateScript
Jan Tojnar
8 years ago
5ed7f2f6
dece1166
+23
-17
1 changed file
expand all
collapse all
unified
split
pkgs
development
libraries
libchamplain
default.nix
+23
-17
pkgs/development/libraries/libchamplain/default.nix
···
1
-
{ fetchurl, stdenv, pkgconfig, glib, gtk3, cairo, clutter, sqlite
2
, clutter-gtk, libsoup, gobjectIntrospection /*, libmemphis */ }:
3
0
0
0
0
4
stdenv.mkDerivation rec {
5
-
major = "0.12";
6
-
version = "${major}.16";
7
-
name = "libchamplain-${version}";
8
9
src = fetchurl {
10
-
url = "mirror://gnome/sources/libchamplain/${major}/${name}.tar.xz";
11
sha256 = "13chvc2n074i0jw5jlb8i7cysda4yqx58ca6y3mrlrl9g37k2zja";
12
};
13
14
-
nativeBuildInputs = [ pkgconfig ];
15
-
buildInputs = [ gobjectIntrospection ];
16
17
propagatedBuildInputs = [ glib gtk3 cairo clutter-gtk sqlite libsoup ];
18
0
0
0
0
0
0
19
meta = with stdenv.lib; {
20
-
inherit version;
21
-
homepage = http://projects.gnome.org/libchamplain/;
22
license = licenses.lgpl2Plus;
23
24
description = "C library providing a ClutterActor to display maps";
25
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
-
'';
33
34
-
maintainers = [ ];
35
platforms = platforms.gnu; # arbitrary choice
36
};
37
}
···
1
+
{ fetchurl, stdenv, pkgconfig, glib, gtk3, cairo, clutter, sqlite, gnome3
2
, clutter-gtk, libsoup, gobjectIntrospection /*, libmemphis */ }:
3
4
+
let
5
+
pname = "libchamplain";
6
+
version = "0.12.16";
7
+
in
8
stdenv.mkDerivation rec {
9
+
name = "${pname}-${version}";
0
0
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 ];
0
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;
0
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; # arbitrary choice
42
};
43
}