2021-12-19 01:06:50 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, protozero, expat, zlib, bzip2, boost, lz4 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "libosmium";
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "2.19.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "osmcode";
|
|
|
|
repo = "libosmium";
|
|
|
|
rev = "v${version}";
|
2023-02-02 18:25:31 +00:00
|
|
|
sha256 = "sha256-R7kOhQFfGYuHNkIZV4BTE+WKjHnCJwKeIWjCJNrvyTQ=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2020-07-18 16:06:22 +00:00
|
|
|
|
2021-12-19 01:06:50 +00:00
|
|
|
buildInputs = [ protozero zlib bzip2 expat boost lz4 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
cmakeFlags = [ "-DINSTALL_GDALCPP:BOOL=ON" ];
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
doCheck = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Fast and flexible C++ library for working with OpenStreetMap data";
|
|
|
|
homepage = "https://osmcode.org/libosmium/";
|
|
|
|
license = licenses.boost;
|
2022-02-20 05:27:41 +00:00
|
|
|
changelog = [
|
|
|
|
"https://github.com/osmcode/libosmium/releases/tag/v${version}"
|
|
|
|
"https://github.com/osmcode/libosmium/blob/v${version}/CHANGELOG.md"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ das-g ];
|
|
|
|
};
|
|
|
|
}
|