3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/libchamplain/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

98 lines
2.1 KiB
Nix
Raw Normal View History

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
}:
stdenv.mkDerivation rec {
pname = "libchamplain";
version = "0.12.20";
src = fetchurl {
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
sha256 = "0rihpb0npqpihqcdz4w03rq6xl7jdckfqskvv9diq2hkrnzv8ch2";
};
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=";
})
];
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
];
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
];
2022-09-21 03:05:13 +01:00
propagatedBuildInputs = [
glib
gtk3
cairo
clutter-gtk
];
mesonFlags = [
"-Dgtk_doc=true"
"-Dvapi=true"
];
2018-03-03 02:43:23 +00:00
passthru = {
updateScript = gnome.updateScript {
2018-03-03 02:43:23 +00:00
packageName = pname;
versionPolicy = "odd-unstable";
2018-03-03 02:43:23 +00:00
};
};
meta = with lib; {
homepage = "https://wiki.gnome.org/Projects/libchamplain";
2015-09-21 08:24:32 +01:00
license = licenses.lgpl2Plus;
description = "C library providing a ClutterActor to display maps";
2018-03-03 02:43:23 +00:00
longDescription = ''
libchamplain is a C library providing a ClutterActor to display
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.
'';
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
};
}