mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
caa25fae7b
https://gitlab.gnome.org/GNOME/geocode-glib/-/compare/3.26.3...3.26.4 Changelog-Reviewed-By: Jan Tojnar <jtojnar@gmail.com>
73 lines
1.4 KiB
Nix
73 lines
1.4 KiB
Nix
{ stdenv
|
|
, lib
|
|
, fetchurl
|
|
, meson
|
|
, mesonEmulatorHook
|
|
, ninja
|
|
, pkg-config
|
|
, gettext
|
|
, gtk-doc
|
|
, docbook-xsl-nons
|
|
, gobject-introspection
|
|
, gnome
|
|
, libsoup
|
|
, json-glib
|
|
, glib
|
|
, nixosTests
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "geocode-glib";
|
|
version = "3.26.4";
|
|
|
|
outputs = [ "out" "dev" "devdoc" "installedTests" ];
|
|
|
|
src = fetchurl {
|
|
url = "mirror://gnome/sources/geocode-glib/${lib.versions.majorMinor version}/geocode-glib-${version}.tar.xz";
|
|
sha256 = "LZpoJtFYRwRJoXOHEiFZbaD4Pr3P+YuQxwSQiQVqN6o=";
|
|
};
|
|
|
|
patches = [
|
|
./installed-tests-path.patch
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
meson
|
|
ninja
|
|
pkg-config
|
|
gettext
|
|
gtk-doc
|
|
docbook-xsl-nons
|
|
gobject-introspection
|
|
] ++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
|
|
mesonEmulatorHook
|
|
];
|
|
|
|
buildInputs = [
|
|
glib
|
|
libsoup
|
|
json-glib
|
|
];
|
|
|
|
mesonFlags = [
|
|
"-Dsoup2=${lib.boolToString (lib.versionOlder libsoup.version "2.99")}"
|
|
"-Dinstalled_test_prefix=${placeholder "installedTests"}"
|
|
];
|
|
|
|
passthru = {
|
|
updateScript = gnome.updateScript {
|
|
packageName = pname;
|
|
};
|
|
tests = {
|
|
installed-tests = nixosTests.installed-tests.geocode-glib;
|
|
};
|
|
};
|
|
|
|
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.unix;
|
|
};
|
|
}
|