2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, protozero, expat, zlib, bzip2, boost }:
|
2018-10-28 15:37:49 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "libosmium";
|
2021-01-08 20:52:36 +00:00
|
|
|
version = "2.16.0";
|
2018-10-28 15:37:49 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "osmcode";
|
|
|
|
repo = "libosmium";
|
|
|
|
rev = "v${version}";
|
2021-01-08 20:52:36 +00:00
|
|
|
sha256 = "1na51g6xfm1bx0d0izbg99cwmqn0grp0g41znn93xnhs202qnb2h";
|
2018-10-28 15:37:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2020-06-28 19:01:07 +01:00
|
|
|
|
2018-10-28 15:37:49 +00:00
|
|
|
buildInputs = [ protozero zlib bzip2 expat boost ];
|
|
|
|
|
2021-01-08 20:52:36 +00:00
|
|
|
cmakeFlags = [ "-DINSTALL_GDALCPP:BOOL=ON" ];
|
|
|
|
|
2020-06-28 19:01:07 +01:00
|
|
|
doCheck = true;
|
2018-10-28 15:37:49 +00:00
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2018-10-28 15:37:49 +00:00
|
|
|
description = "Fast and flexible C++ library for working with OpenStreetMap data";
|
|
|
|
homepage = "https://osmcode.org/libosmium/";
|
|
|
|
license = licenses.boost;
|
|
|
|
maintainers = with maintainers; [ das-g ];
|
|
|
|
};
|
|
|
|
}
|