python312Packages.llama-index: 0.12.9 -> 0.12.9.post1 (#371957)
[NixPkgs.git] / pkgs / by-name / li / libosmium / package.nix
blob77a269650c5999e0e0a700eea079c26c010542ae
2   lib,
3   stdenv,
4   fetchFromGitHub,
5   cmake,
6   protozero,
7   expat,
8   zlib,
9   bzip2,
10   boost,
11   lz4,
14 stdenv.mkDerivation rec {
15   pname = "libosmium";
16   version = "2.20.0";
18   src = fetchFromGitHub {
19     owner = "osmcode";
20     repo = "libosmium";
21     rev = "v${version}";
22     sha256 = "sha256-QM6Nj2cmrhUysR2enFKhTWXdBXNqM21/Yqdn/zXEfYE=";
23   };
25   nativeBuildInputs = [ cmake ];
27   buildInputs = [
28     protozero
29     zlib
30     bzip2
31     expat
32     boost
33     lz4
34   ];
36   cmakeFlags = [ "-DINSTALL_GDALCPP:BOOL=ON" ];
38   doCheck = true;
40   meta = with lib; {
41     description = "Fast and flexible C++ library for working with OpenStreetMap data";
42     homepage = "https://osmcode.org/libosmium/";
43     license = licenses.boost;
44     changelog = [
45       "https://github.com/osmcode/libosmium/releases/tag/v${version}"
46       "https://github.com/osmcode/libosmium/blob/v${version}/CHANGELOG.md"
47     ];
48     maintainers = with maintainers; teams.geospatial.members ++ [ das-g ];
49   };