summary refs log tree commit diff
path: root/pkgs/development/libraries/geocode-glib
diff options
context:
space:
mode:
authorJan Tojnar <jtojnar@gmail.com>2018-12-25 17:28:34 +0100
committerJan Tojnar <jtojnar@gmail.com>2018-12-25 17:28:34 +0100
commit93a6f4414cab403362c3c6c2e47058367f013160 (patch)
treea08d9484ed5597df980178ab285e4a5df98f227e /pkgs/development/libraries/geocode-glib
parent7ca5ec11b0333b74f0dbb13518953b8f830ce0bd (diff)
downloadnixpkgs-93a6f4414cab403362c3c6c2e47058367f013160.tar
nixpkgs-93a6f4414cab403362c3c6c2e47058367f013160.tar.gz
nixpkgs-93a6f4414cab403362c3c6c2e47058367f013160.tar.bz2
nixpkgs-93a6f4414cab403362c3c6c2e47058367f013160.tar.lz
nixpkgs-93a6f4414cab403362c3c6c2e47058367f013160.tar.xz
nixpkgs-93a6f4414cab403362c3c6c2e47058367f013160.tar.zst
nixpkgs-93a6f4414cab403362c3c6c2e47058367f013160.zip
geocode-glib: rename from gnome3.geocode-glib
Diffstat (limited to 'pkgs/development/libraries/geocode-glib')
-rw-r--r--pkgs/development/libraries/geocode-glib/default.nix37
-rw-r--r--pkgs/development/libraries/geocode-glib/installed-tests-path.patch8
2 files changed, 45 insertions, 0 deletions
diff --git a/pkgs/development/libraries/geocode-glib/default.nix b/pkgs/development/libraries/geocode-glib/default.nix
new file mode 100644
index 00000000000..2d308add87a
--- /dev/null
+++ b/pkgs/development/libraries/geocode-glib/default.nix
@@ -0,0 +1,37 @@
+{ 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" ];
+
+  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 ];
+  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 = {
+    updateScript = gnome3.updateScript {
+      packageName = pname;
+    };
+  };
+
+  meta = with stdenv.lib; {
+    description = "A convenience library for the geocoding and reverse geocoding using Nominatim service";
+    license = licenses.lgpl2Plus;
+    maintainers = gnome3.maintainers;
+    platforms = platforms.linux;
+  };
+}
diff --git a/pkgs/development/libraries/geocode-glib/installed-tests-path.patch b/pkgs/development/libraries/geocode-glib/installed-tests-path.patch
new file mode 100644
index 00000000000..499c6800808
--- /dev/null
+++ b/pkgs/development/libraries/geocode-glib/installed-tests-path.patch
@@ -0,0 +1,8 @@
+--- a/geocode-glib/tests/meson.build
++++ b/geocode-glib/tests/meson.build
+@@ -1,4 +1,4 @@
+-install_dir = get_option('libexecdir') + '/installed-tests/geocode-glib'
++install_dir = '@installedTests@/libexec/installed-tests/geocode-glib'
+ 
+ e = executable('geo-uri',
+                'geo-uri.c',