2018-10-28 15:37:49 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, protozero, expat, zlib, bzip2, boost }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "libosmium";
|
2020-06-28 15:11:41 +01:00
|
|
|
version = "2.15.6";
|
2018-10-28 15:37:49 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "osmcode";
|
|
|
|
repo = "libosmium";
|
|
|
|
rev = "v${version}";
|
2020-06-28 15:11:41 +01:00
|
|
|
sha256 = "0rqy18bbakp41f44y5id9ixh0ar2dby46z17p4115z8k1vv9znq2";
|
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 ];
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|