Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / libosmium / default.nix
blob63aab4c0bfb10a7d6d3e170a6e0001616fb3a47e
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; [ das-g ];
31   };