2021-01-21 17:00:13 +00:00
|
|
|
{ fetchurl, lib, stdenv, meson, ninja, pkg-config, gettext, gtk-doc, docbook_xsl, gobject-introspection, gnome3, libsoup, json-glib, glib }:
|
2016-09-18 20:35:23 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-12-25 16:28:34 +00:00
|
|
|
pname = "geocode-glib";
|
2020-04-08 06:14:50 +01:00
|
|
|
version = "3.26.2";
|
2018-02-25 20:07:20 +00:00
|
|
|
|
2018-12-25 16:28:34 +00:00
|
|
|
outputs = [ "out" "dev" "devdoc" "installedTests" ];
|
2018-03-13 02:14:37 +00:00
|
|
|
|
2018-02-25 20:07:20 +00:00
|
|
|
src = fetchurl {
|
2021-01-21 17:00:13 +00:00
|
|
|
url = "mirror://gnome/sources/geocode-glib/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2020-04-08 06:14:50 +01:00
|
|
|
sha256 = "1l8g0f13xgkrk335afr9w8k46mziwb2jnyhl07jccl5yl37q9zh1";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ meson ninja pkg-config gettext gtk-doc docbook_xsl gobject-introspection ];
|
2019-02-13 21:47:50 +00:00
|
|
|
buildInputs = [ glib libsoup json-glib ];
|
2018-03-13 02:14:37 +00:00
|
|
|
|
|
|
|
patches = [
|
|
|
|
./installed-tests-path.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace geocode-glib/tests/meson.build --subst-var-by "installedTests" "$installedTests"
|
|
|
|
'';
|
|
|
|
|
2018-02-25 20:07:20 +00:00
|
|
|
passthru = {
|
2018-03-13 02:14:37 +00:00
|
|
|
updateScript = gnome3.updateScript {
|
2018-12-25 16:28:34 +00:00
|
|
|
packageName = pname;
|
2018-03-13 02:14:37 +00:00
|
|
|
};
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
2016-09-18 20:35:23 +01:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2018-03-13 02:14:37 +00:00
|
|
|
description = "A convenience library for the geocoding and reverse geocoding using Nominatim service";
|
|
|
|
license = licenses.lgpl2Plus;
|
2020-04-01 13:40:51 +01:00
|
|
|
maintainers = teams.gnome.members;
|
2018-03-13 02:14:37 +00:00
|
|
|
platforms = platforms.linux;
|
2016-09-18 20:35:23 +01:00
|
|
|
};
|
|
|
|
}
|