diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/geocode-glib/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/geocode-glib/default.nix | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/geocode-glib/default.nix b/nixpkgs/pkgs/development/libraries/geocode-glib/default.nix new file mode 100644 index 000000000000..f401c25aa394 --- /dev/null +++ b/nixpkgs/pkgs/development/libraries/geocode-glib/default.nix @@ -0,0 +1,37 @@ +{ fetchurl, lib, stdenv, meson, ninja, pkg-config, gettext, gtk-doc, docbook_xsl, gobject-introspection, gnome3, libsoup, json-glib, glib }: + +stdenv.mkDerivation rec { + pname = "geocode-glib"; + version = "3.26.2"; + + outputs = [ "out" "dev" "devdoc" "installedTests" ]; + + src = fetchurl { + url = "mirror://gnome/sources/geocode-glib/${lib.versions.majorMinor version}/${pname}-${version}.tar.xz"; + sha256 = "1l8g0f13xgkrk335afr9w8k46mziwb2jnyhl07jccl5yl37q9zh1"; + }; + + nativeBuildInputs = [ meson ninja pkg-config gettext gtk-doc docbook_xsl gobject-introspection ]; + buildInputs = [ glib libsoup json-glib ]; + + patches = [ + ./installed-tests-path.patch + ]; + + postPatch = '' + substituteInPlace geocode-glib/tests/meson.build --subst-var-by "installedTests" "$installedTests" + ''; + + passthru = { + updateScript = gnome3.updateScript { + packageName = pname; + }; + }; + + meta = with lib; { + description = "A convenience library for the geocoding and reverse geocoding using Nominatim service"; + license = licenses.lgpl2Plus; + maintainers = teams.gnome.members; + platforms = platforms.linux; + }; +} |