Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, stdenv, fetchFromGitHub, cmake, protozero, expat, zlib, bzip2, boost, lz4 }:
2
3stdenv.mkDerivation rec {
4 pname = "libosmium";
5 version = "2.19.0";
6
7 src = fetchFromGitHub {
8 owner = "osmcode";
9 repo = "libosmium";
10 rev = "v${version}";
11 sha256 = "sha256-R7kOhQFfGYuHNkIZV4BTE+WKjHnCJwKeIWjCJNrvyTQ=";
12 };
13
14 nativeBuildInputs = [ cmake ];
15
16 buildInputs = [ protozero zlib bzip2 expat boost lz4 ];
17
18 cmakeFlags = [ "-DINSTALL_GDALCPP:BOOL=ON" ];
19
20 doCheck = true;
21
22 meta = with lib; {
23 description = "Fast and flexible C++ library for working with OpenStreetMap data";
24 homepage = "https://osmcode.org/libosmium/";
25 license = licenses.boost;
26 changelog = [
27 "https://github.com/osmcode/libosmium/releases/tag/v${version}"
28 "https://github.com/osmcode/libosmium/blob/v${version}/CHANGELOG.md"
29 ];
30 maintainers = with maintainers; [ das-g ];
31 };
32}