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