nixpkgs/pkgs/by-name/li/libosmium/package.nix

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

51 lines
976 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";
2023-09-20 17:44:56 +00:00
version = "2.20.0";
2018-10-28 15:37:49 +00:00
src = fetchFromGitHub {
owner = "osmcode";
repo = "libosmium";
rev = "v${version}";
2023-09-20 17:44:56 +00:00
sha256 = "sha256-QM6Nj2cmrhUysR2enFKhTWXdBXNqM21/Yqdn/zXEfYE=";
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"
];
maintainers = with maintainers; teams.geospatial.members ++ [ das-g ];
2018-10-28 15:37:49 +00:00
};
}