2018-12-02 11:41:15 +00:00
|
|
|
{ fetchurl, stdenv, meson, ninja, pkgconfig, gettext, gtk-doc, docbook_xsl, gobject-introspection, gnome3, libsoup, json-glib }:
|
2016-09-18 19:35:23 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2018-12-25 16:28:34 +00:00
|
|
|
pname = "geocode-glib";
|
2018-06-06 09:40:17 +00:00
|
|
|
version = "3.26.0";
|
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 {
|
2018-12-25 16:28:34 +00:00
|
|
|
url = "mirror://gnome/sources/geocode-glib/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
|
2018-06-06 09:40:17 +00:00
|
|
|
sha256 = "1vmydxs5xizcmaxpkfrq75xpj6pqrpdjizxyb30m00h54yqqch7a";
|
2018-02-25 20:07:20 +00:00
|
|
|
};
|
|
|
|
|
2018-12-02 11:41:15 +00:00
|
|
|
nativeBuildInputs = with gnome3; [ meson ninja pkgconfig gettext gtk-doc docbook_xsl gobject-introspection ];
|
2018-03-13 02:14:37 +00:00
|
|
|
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 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 19:35:23 +00:00
|
|
|
|
|
|
|
meta = with stdenv.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;
|
2016-09-18 19:35:23 +00:00
|
|
|
maintainers = gnome3.maintainers;
|
2018-03-13 02:14:37 +00:00
|
|
|
platforms = platforms.linux;
|
2016-09-18 19:35:23 +00:00
|
|
|
};
|
|
|
|
}
|