nixpkgs/pkgs/development/libraries/libosmium/default.nix

29 lines
725 B
Nix
Raw Normal View History

2018-10-28 15:37:49 +00:00
{ stdenv, fetchFromGitHub, cmake, protozero, expat, zlib, bzip2, boost }:
stdenv.mkDerivation rec {
pname = "libosmium";
2021-01-08 20:52:36 +00:00
version = "2.16.0";
2018-10-28 15:37:49 +00:00
src = fetchFromGitHub {
owner = "osmcode";
repo = "libosmium";
rev = "v${version}";
2021-01-08 20:52:36 +00:00
sha256 = "1na51g6xfm1bx0d0izbg99cwmqn0grp0g41znn93xnhs202qnb2h";
2018-10-28 15:37:49 +00:00
};
nativeBuildInputs = [ cmake ];
2020-06-28 19:01:07 +01:00
2018-10-28 15:37:49 +00:00
buildInputs = [ protozero zlib bzip2 expat boost ];
2021-01-08 20:52:36 +00:00
cmakeFlags = [ "-DINSTALL_GDALCPP:BOOL=ON" ];
2020-06-28 19:01:07 +01:00
doCheck = true;
2018-10-28 15:37:49 +00:00
meta = with stdenv.lib; {
description = "Fast and flexible C++ library for working with OpenStreetMap data";
homepage = "https://osmcode.org/libosmium/";
license = licenses.boost;
maintainers = with maintainers; [ das-g ];
};
}