base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / li / libosmium / package.nix
blob211ca0559b9a847450f050c3f4e965f9a2024985
1 { lib, stdenv, fetchFromGitHub, cmake, protozero, expat, zlib, bzip2, boost, lz4 }:
3 stdenv.mkDerivation rec {
4   pname = "libosmium";
5   version = "2.20.0";
7   src = fetchFromGitHub {
8     owner = "osmcode";
9     repo = "libosmium";
10     rev = "v${version}";
11     sha256 = "sha256-QM6Nj2cmrhUysR2enFKhTWXdBXNqM21/Yqdn/zXEfYE=";
12   };
14   nativeBuildInputs = [ cmake ];
16   buildInputs = [ protozero zlib bzip2 expat boost lz4 ];
18   cmakeFlags = [ "-DINSTALL_GDALCPP:BOOL=ON" ];
20   doCheck = true;
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; teams.geospatial.members ++ [ das-g ];
31   };