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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
901 B
Nix
Raw Normal View History

2021-12-16 10:09:18 +00:00
{ lib, stdenv, fetchFromGitHub, cmake, protozero, expat, zlib, bzip2, boost, lz4 }:
2018-10-28 15:37:49 +00:00
stdenv.mkDerivation rec {
pname = "libosmium";
2022-02-07 18:27:23 +00:00
version = "2.18.0";
2018-10-28 15:37:49 +00:00
src = fetchFromGitHub {
owner = "osmcode";
repo = "libosmium";
rev = "v${version}";
2022-02-07 18:27:23 +00:00
sha256 = "sha256-IPdaBT6hRNHo8kuOsiKdyiQkRxA/l+44U3qGGG89BTo=";
2018-10-28 15:37:49 +00:00
};
nativeBuildInputs = [ cmake ];
2020-06-28 18:01:07 +00:00
2021-12-16 10:09:18 +00:00
buildInputs = [ protozero zlib bzip2 expat boost lz4 ];
2018-10-28 15:37:49 +00:00
2021-01-08 20:52:36 +00:00
cmakeFlags = [ "-DINSTALL_GDALCPP:BOOL=ON" ];
2020-06-28 18:01:07 +00: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;
2022-01-27 23:49:36 +00:00
changelog = [
"https://github.com/osmcode/libosmium/releases/tag/v${version}"
"https://github.com/osmcode/libosmium/blob/v${version}/CHANGELOG.md"
];
2018-10-28 15:37:49 +00:00
maintainers = with maintainers; [ das-g ];
};
}