forgejo-lts: 7.0.10 -> 7.0.11
[NixPkgs.git] / pkgs / development / libraries / libosmscout / default.nix
blobc33b8881a03afc0a78c63a960b82493968d2e79e
1 { lib, mkDerivation, fetchFromGitHub, fetchpatch, cmake, pkg-config
2 , marisa, qttools, qtlocation }:
4 mkDerivation rec {
5   pname = "libosmscout";
6   version = "2022.04.25";
8   src = fetchFromGitHub {
9     owner = "Framstag";
10     repo = "libosmscout";
11     rev = "4c3b28472864b8e9cdda80a05ec73ef22cb39323";
12     sha256 = "sha256-Qe5TkF4BwlsEI7emC0gdc7SmS4QrSGLiO0QdjuJA09g=";
13   };
15   patches = [
16     # Fix build with libxml v2.12
17     # FIXME: Remove at next package update
18     (fetchpatch {
19       name = "libxml-2.12-fix.patch";
20       url = "https://github.com/Framstag/libosmscout/commit/db7b307de1a1146a6868015a0adfc2e21b7d5e39.patch";
21       hash = "sha256-5NDamzb2K18sMVfREnUNksgD2NL7ELzLl83SlGIveO0=";
22     })
23   ];
25   cmakeFlags = [ "-DOSMSCOUT_BUILD_TESTS=OFF" ];
27   nativeBuildInputs = [ cmake pkg-config ];
28   buildInputs = [ marisa qttools qtlocation ];
30   meta = with lib; {
31     description = "Simple, high-level interfaces for offline location and POI lokup, rendering and routing functionalities based on OpenStreetMap (OSM) data";
32     homepage = "https://libosmscout.sourceforge.net/";
33     license = licenses.lgpl3Plus;
34     maintainers = [ maintainers.Thra11 ];
35     platforms = platforms.linux;
36   };