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

29 lines
722 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake, protozero, expat, zlib, bzip2, boost }:
2018-10-28 15:37:49 +00:00
stdenv.mkDerivation rec {
pname = "libosmium";
2021-04-27 20:08:49 +01:00
version = "2.17.0";
2018-10-28 15:37:49 +00:00
src = fetchFromGitHub {
owner = "osmcode";
repo = "libosmium";
rev = "v${version}";
2021-04-27 20:08:49 +01:00
sha256 = "sha256-q938WA+vJDqGVutVzWdEP7ujDAmfj3vluliomVd0om0=";
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 lib; {
2018-10-28 15:37:49 +00:00
description = "Fast and flexible C++ library for working with OpenStreetMap data";
homepage = "https://osmcode.org/libosmium/";
license = licenses.boost;
maintainers = with maintainers; [ das-g ];
};
}