2021-09-29 21:03:16 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2019-07-17 02:01:33 +02:00
|
|
|
, cmake
|
|
|
|
, fetchFromGitHub
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "h3";
|
2021-07-20 07:22:37 +02:00
|
|
|
version = "3.7.2";
|
2019-07-17 02:01:33 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "uber";
|
|
|
|
repo = "h3";
|
|
|
|
rev = "v${version}";
|
2021-07-20 07:22:37 +02:00
|
|
|
sha256 = "sha256-MvWqQraTnab6EuDx4V0v8EvrFWHT95f2EHTL2p2kei8=";
|
2019-07-17 02:01:33 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
|
|
|
|
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_SHARED_LIBS=ON"
|
2019-07-18 21:44:51 +02:00
|
|
|
"-DENABLE_LINTING=OFF"
|
2019-07-17 02:01:33 +02:00
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2021-09-29 21:03:16 +02:00
|
|
|
homepage = "https://h3geo.org/";
|
2019-07-17 02:01:33 +02:00
|
|
|
description = "Hexagonal hierarchical geospatial indexing system";
|
|
|
|
license = licenses.asl20;
|
2021-09-29 21:03:16 +02:00
|
|
|
changelog = "https://github.com/uber/h3/raw/v${version}/CHANGELOG.md";
|
|
|
|
platforms = platforms.all;
|
2019-07-17 02:01:33 +02:00
|
|
|
maintainers = [ maintainers.kalbasit ];
|
|
|
|
};
|
|
|
|
}
|