2021-12-16 10:09:18 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
stdenv,
|
|
|
|
fetchFromGitHub,
|
|
|
|
cmake,
|
|
|
|
protozero,
|
|
|
|
expat,
|
|
|
|
zlib,
|
|
|
|
bzip2,
|
|
|
|
boost,
|
|
|
|
lz4,
|
|
|
|
}:
|
2018-10-28 15:37:49 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "libosmium";
|
2023-09-20 17:44:56 +00:00
|
|
|
version = "2.20.0";
|
2018-10-28 15:37:49 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "osmcode";
|
|
|
|
repo = "libosmium";
|
|
|
|
rev = "v${version}";
|
2023-09-20 17:44:56 +00:00
|
|
|
sha256 = "sha256-QM6Nj2cmrhUysR2enFKhTWXdBXNqM21/Yqdn/zXEfYE=";
|
2018-10-28 15:37:49 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2020-06-28 18:01:07 +00:00
|
|
|
|
2021-12-16 10:09:18 +00:00
|
|
|
buildInputs = [
|
|
|
|
protozero
|
|
|
|
zlib
|
|
|
|
bzip2
|
|
|
|
expat
|
|
|
|
boost
|
|
|
|
lz4
|
|
|
|
];
|
2018-10-28 15:37:49 +00:00
|
|
|
|
2021-01-08 20:52:36 +00:00
|
|
|
cmakeFlags = [ "-DINSTALL_GDALCPP:BOOL=ON" ];
|
|
|
|
|
2020-06-28 18:01:07 +00: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;
|
2022-01-27 23:49:36 +00:00
|
|
|
changelog = [
|
|
|
|
"https://github.com/osmcode/libosmium/releases/tag/v${version}"
|
|
|
|
"https://github.com/osmcode/libosmium/blob/v${version}/CHANGELOG.md"
|
|
|
|
];
|
2024-02-11 16:26:46 +00:00
|
|
|
maintainers = with maintainers; teams.geospatial.members ++ [ das-g ];
|
2018-10-28 15:37:49 +00:00
|
|
|
};
|
|
|
|
}
|