2018-03-13 03:14:37 +01:00
|
|
|
{ fetchurl, stdenv, meson, ninja, pkgconfig, gettext, gtk-doc, docbook_xsl, gobjectIntrospection, gnome3, libsoup, json-glib }:
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-02-25 21:07:20 +01:00
|
|
|
name = "geocode-glib-${version}";
|
2018-03-13 02:03:18 +01:00
|
|
|
version = "3.25.4.1";
|
2018-02-25 21:07:20 +01:00
|
|
|
|
2018-03-13 03:14:37 +01:00
|
|
|
outputs = [ "out" "dev" "installedTests" ];
|
|
|
|
|
2018-02-25 21:07:20 +01:00
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://gnome/sources/geocode-glib/${gnome3.versionBranch version}/${name}.tar.xz";
|
2018-03-13 02:03:18 +01:00
|
|
|
sha256 = "0y6p5l2jrr78p7l4hijjhclzbap005y6h06g3aiglg9i5hk6j0gi";
|
2018-02-25 21:07:20 +01:00
|
|
|
};
|
|
|
|
|
2018-03-13 03:14:37 +01:00
|
|
|
nativeBuildInputs = with gnome3; [ meson ninja pkgconfig gettext gtk-doc docbook_xsl gobjectIntrospection ];
|
|
|
|
buildInputs = with gnome3; [ glib libsoup json-glib ];
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./installed-tests-path.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace geocode-glib/tests/meson.build --subst-var-by "installedTests" "$installedTests"
|
|
|
|
'';
|
|
|
|
|
2018-02-25 21:07:20 +01:00
|
|
|
passthru = {
|
2018-03-13 03:14:37 +01:00
|
|
|
updateScript = gnome3.updateScript {
|
|
|
|
packageName = "geocode-glib";
|
|
|
|
attrPath = "gnome3.geocode-glib";
|
|
|
|
};
|
2018-02-25 21:07:20 +01:00
|
|
|
};
|
2016-09-18 21:35:23 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2018-03-13 03:14:37 +01:00
|
|
|
description = "A convenience library for the geocoding and reverse geocoding using Nominatim service";
|
|
|
|
license = licenses.lgpl2Plus;
|
2016-09-18 21:35:23 +02:00
|
|
|
maintainers = gnome3.maintainers;
|
2018-03-13 03:14:37 +01:00
|
|
|
platforms = platforms.linux;
|
2016-09-18 21:35:23 +02:00
|
|
|
};
|
|
|
|
}
|