2022-09-21 03:05:13 +01:00
|
|
|
{ fetchurl
|
2022-09-21 03:11:23 +01:00
|
|
|
, fetchpatch
|
2022-09-21 03:05:13 +01:00
|
|
|
, lib
|
|
|
|
, stdenv
|
|
|
|
, meson
|
|
|
|
, ninja
|
|
|
|
, vala
|
|
|
|
, gtk-doc
|
|
|
|
, docbook_xsl
|
|
|
|
, docbook_xml_dtd_412
|
|
|
|
, pkg-config
|
|
|
|
, glib
|
|
|
|
, gtk3
|
|
|
|
, cairo
|
|
|
|
, sqlite
|
|
|
|
, gnome
|
|
|
|
, clutter-gtk
|
|
|
|
, libsoup
|
2022-09-21 03:11:23 +01:00
|
|
|
, libsoup_3
|
2022-09-21 03:05:13 +01:00
|
|
|
, gobject-introspection /*, libmemphis */
|
2022-09-21 03:11:23 +01:00
|
|
|
, withLibsoup3 ? false
|
2022-09-21 03:05:13 +01:00
|
|
|
}:
|
2010-07-18 23:46:19 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-03-05 20:00:30 +00:00
|
|
|
pname = "libchamplain";
|
2019-11-02 10:21:07 +00:00
|
|
|
version = "0.12.20";
|
2010-07-18 23:46:19 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2021-01-21 17:00:13 +00:00
|
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2019-11-02 10:21:07 +00:00
|
|
|
sha256 = "0rihpb0npqpihqcdz4w03rq6xl7jdckfqskvv9diq2hkrnzv8ch2";
|
2010-07-18 23:46:19 +01:00
|
|
|
};
|
|
|
|
|
2022-09-21 03:11:23 +01:00
|
|
|
patches = lib.optionals withLibsoup3 [
|
|
|
|
# Port to libsoup3
|
|
|
|
# https://gitlab.gnome.org/GNOME/libchamplain/-/merge_requests/13
|
|
|
|
(fetchpatch {
|
|
|
|
url = "https://gitlab.gnome.org/GNOME/libchamplain/-/commit/1cbaf3193c2b38e447fbc383d4c455c3dcac6db8.patch";
|
|
|
|
excludes = [ ".gitlab-ci.yml" ];
|
|
|
|
sha256 = "uk38gExnUgeUKwhDsqRU77hGWhJ+8fG5dSiV2MAWLFk=";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2019-03-05 20:00:30 +00:00
|
|
|
outputs = [ "out" "dev" "devdoc" ];
|
|
|
|
|
2022-09-21 03:05:13 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
meson
|
|
|
|
ninja
|
|
|
|
pkg-config
|
|
|
|
gobject-introspection
|
|
|
|
vala
|
|
|
|
gtk-doc
|
|
|
|
docbook_xsl
|
|
|
|
docbook_xml_dtd_412
|
|
|
|
];
|
2019-03-05 20:00:30 +00:00
|
|
|
|
2022-09-21 03:05:13 +01:00
|
|
|
buildInputs = [
|
|
|
|
sqlite
|
2022-09-21 03:11:23 +01:00
|
|
|
(if withLibsoup3 then libsoup_3 else libsoup)
|
2022-09-21 03:05:13 +01:00
|
|
|
];
|
2018-10-08 16:28:45 +01:00
|
|
|
|
2022-09-21 03:05:13 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
glib
|
|
|
|
gtk3
|
|
|
|
cairo
|
|
|
|
clutter-gtk
|
|
|
|
];
|
2010-07-18 23:46:19 +01:00
|
|
|
|
2019-03-05 20:00:30 +00:00
|
|
|
mesonFlags = [
|
|
|
|
"-Dgtk_doc=true"
|
|
|
|
"-Dvapi=true"
|
|
|
|
];
|
2010-07-18 23:46:19 +01:00
|
|
|
|
2018-03-03 02:43:23 +00:00
|
|
|
passthru = {
|
2021-05-07 22:18:14 +01:00
|
|
|
updateScript = gnome.updateScript {
|
2018-03-03 02:43:23 +00:00
|
|
|
packageName = pname;
|
2021-03-20 23:57:24 +00:00
|
|
|
versionPolicy = "odd-unstable";
|
2018-03-03 02:43:23 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://wiki.gnome.org/Projects/libchamplain";
|
2015-09-21 08:24:32 +01:00
|
|
|
license = licenses.lgpl2Plus;
|
2010-07-18 23:46:19 +01:00
|
|
|
|
2014-08-24 15:21:08 +01:00
|
|
|
description = "C library providing a ClutterActor to display maps";
|
2010-07-18 23:46:19 +01:00
|
|
|
|
2018-03-03 02:43:23 +00:00
|
|
|
longDescription = ''
|
|
|
|
libchamplain is a C library providing a ClutterActor to display
|
2019-09-03 23:49:40 +01:00
|
|
|
maps. It also provides a GTK widget to display maps in GTK
|
2018-03-03 02:43:23 +00:00
|
|
|
applications. Python and Perl bindings are also available. It
|
|
|
|
supports numerous free map sources such as OpenStreetMap,
|
|
|
|
OpenCycleMap, OpenAerialMap, and Maps for free.
|
|
|
|
'';
|
2010-07-18 23:46:19 +01:00
|
|
|
|
2022-09-21 03:11:23 +01:00
|
|
|
maintainers = teams.gnome.members ++ teams.pantheon.members;
|
2022-09-21 03:05:13 +01:00
|
|
|
platforms = platforms.gnu ++ platforms.linux; # arbitrary choice
|
2010-07-18 23:46:19 +01:00
|
|
|
};
|
|
|
|
}
|