nixpkgs/pkgs/development/libraries/geocode-glib/default.nix

38 lines
1.1 KiB
Nix
Raw Normal View History

{ fetchurl, stdenv, meson, ninja, pkgconfig, gettext, gtk-doc, docbook_xsl, gobject-introspection, gnome3, libsoup, json-glib }:
stdenv.mkDerivation rec {
pname = "geocode-glib";
version = "3.26.0";
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";
sha256 = "1vmydxs5xizcmaxpkfrq75xpj6pqrpdjizxyb30m00h54yqqch7a";
};
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"
'';
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 = gnome3.maintainers;
2018-03-13 02:14:37 +00:00
platforms = platforms.linux;
};
}