mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 05:50:00 +00:00
`libchamplain` has referred to the version that links to libsoup 2.4 by default, and has thus been marked insecure for quite some time. All of the (few) dependents support building with the libsoup 3 version, so we drop the insecure version entirely.
97 lines
1.9 KiB
Nix
97 lines
1.9 KiB
Nix
{
|
|
fetchurl,
|
|
lib,
|
|
stdenv,
|
|
meson,
|
|
ninja,
|
|
vala,
|
|
gtk-doc,
|
|
docbook_xsl,
|
|
docbook_xml_dtd_412,
|
|
pkg-config,
|
|
glib,
|
|
gtk3,
|
|
cairo,
|
|
sqlite,
|
|
gnome,
|
|
clutter-gtk,
|
|
libsoup_3,
|
|
gobject-introspection, # , libmemphis
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "libchamplain";
|
|
version = "0.12.21";
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
]
|
|
++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [ "devdoc" ];
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/${pname}/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
|
sha256 = "qRXNFyoMUpRMVXn8tGg/ioeMVxv16SglS12v78cn5ac=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
gobject-introspection
|
|
vala
|
|
]
|
|
++ lib.optionals (stdenv.buildPlatform == stdenv.hostPlatform) [
|
|
gtk-doc
|
|
docbook_xsl
|
|
docbook_xml_dtd_412
|
|
];
|
|
|
|
buildInputs = [
|
|
sqlite
|
|
libsoup_3
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
glib
|
|
gtk3
|
|
cairo
|
|
clutter-gtk
|
|
];
|
|
|
|
mesonFlags = [
|
|
(lib.mesonBool "gtk_doc" (stdenv.buildPlatform == stdenv.hostPlatform))
|
|
"-Dvapi=true"
|
|
(lib.mesonBool "libsoup3" true)
|
|
];
|
|
|
|
passthru = {
|
|
updateScript = gnome.updateScript {
|
|
packageName = "libchamplain";
|
|
attrPath = "libchamplain_libsoup3";
|
|
versionPolicy = "odd-unstable";
|
|
};
|
|
};
|
|
|
|
meta = {
|
|
homepage = "https://gitlab.gnome.org/GNOME/libchamplain";
|
|
license = lib.licenses.lgpl2Plus;
|
|
|
|
description = "C library providing a ClutterActor to display maps";
|
|
|
|
longDescription = ''
|
|
libchamplain is a C library providing a ClutterActor to display
|
|
maps. It also provides a GTK widget to display maps in GTK
|
|
applications. Python and Perl bindings are also available. It
|
|
supports numerous free map sources such as OpenStreetMap,
|
|
OpenCycleMap, OpenAerialMap, and Maps for free.
|
|
'';
|
|
|
|
teams = [
|
|
lib.teams.gnome
|
|
lib.teams.pantheon
|
|
];
|
|
platforms = lib.platforms.unix;
|
|
};
|
|
}
|