3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/geocode-glib/default.nix

38 lines
1.1 KiB
Nix
Raw Normal View History

2019-02-13 21:47:50 +00:00
{ fetchurl, stdenv, meson, ninja, pkgconfig, gettext, gtk-doc, docbook_xsl, gobject-introspection, gnome3, libsoup, json-glib, glib }:
stdenv.mkDerivation rec {
pname = "geocode-glib";
2020-04-08 06:14:50 +01:00
version = "3.26.2";
outputs = [ "out" "dev" "devdoc" "installedTests" ];
2018-03-13 02:14:37 +00:00
src = fetchurl {
url = "mirror://gnome/sources/geocode-glib/${stdenv.lib.versions.majorMinor version}/${pname}-${version}.tar.xz";
2020-04-08 06:14:50 +01:00
sha256 = "1l8g0f13xgkrk335afr9w8k46mziwb2jnyhl07jccl5yl37q9zh1";
};
2019-02-13 21:47:50 +00:00
nativeBuildInputs = [ meson ninja pkgconfig gettext gtk-doc docbook_xsl gobject-introspection ];
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"
'';
passthru = {
2018-03-13 02:14:37 +00:00
updateScript = gnome3.updateScript {
packageName = pname;
2018-03-13 02:14:37 +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;
maintainers = teams.gnome.members;
2018-03-13 02:14:37 +00:00
platforms = platforms.linux;
};
}