Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 mkDerivation, 4 fetchFromGitHub, 5 fetchpatch, 6 cmake, 7 pkg-config, 8 marisa, 9 qttools, 10 qtlocation, 11}: 12 13mkDerivation { 14 pname = "libosmscout"; 15 version = "2022.04.25"; 16 17 src = fetchFromGitHub { 18 owner = "Framstag"; 19 repo = "libosmscout"; 20 rev = "4c3b28472864b8e9cdda80a05ec73ef22cb39323"; 21 sha256 = "sha256-Qe5TkF4BwlsEI7emC0gdc7SmS4QrSGLiO0QdjuJA09g="; 22 }; 23 24 patches = [ 25 # Fix build with libxml v2.12 26 # FIXME: Remove at next package update 27 (fetchpatch { 28 name = "libxml-2.12-fix.patch"; 29 url = "https://github.com/Framstag/libosmscout/commit/db7b307de1a1146a6868015a0adfc2e21b7d5e39.patch"; 30 hash = "sha256-5NDamzb2K18sMVfREnUNksgD2NL7ELzLl83SlGIveO0="; 31 }) 32 ]; 33 34 cmakeFlags = [ "-DOSMSCOUT_BUILD_TESTS=OFF" ]; 35 36 nativeBuildInputs = [ 37 cmake 38 pkg-config 39 ]; 40 buildInputs = [ 41 marisa 42 qttools 43 qtlocation 44 ]; 45 46 meta = with lib; { 47 description = "Simple, high-level interfaces for offline location and POI lokup, rendering and routing functionalities based on OpenStreetMap (OSM) data"; 48 homepage = "https://libosmscout.sourceforge.net/"; 49 license = licenses.lgpl3Plus; 50 maintainers = [ maintainers.Thra11 ]; 51 platforms = platforms.linux; 52 }; 53}