1 { lib, stdenv, fetchFromGitHub, cmake, protozero, expat, zlib, bzip2, boost, lz4 }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
11 sha256 = "sha256-QM6Nj2cmrhUysR2enFKhTWXdBXNqM21/Yqdn/zXEfYE=";
14 nativeBuildInputs = [ cmake ];
16 buildInputs = [ protozero zlib bzip2 expat boost lz4 ];
18 cmakeFlags = [ "-DINSTALL_GDALCPP:BOOL=ON" ];
23 description = "Fast and flexible C++ library for working with OpenStreetMap data";
24 homepage = "https://osmcode.org/libosmium/";
25 license = licenses.boost;
27 "https://github.com/osmcode/libosmium/releases/tag/v${version}"
28 "https://github.com/osmcode/libosmium/blob/v${version}/CHANGELOG.md"
30 maintainers = with maintainers; [ das-g ];