nixpkgs/pkgs/development/misc/h3/default.nix
2021-07-20 05:22:37 +00:00

31 lines
601 B
Nix

{ lib, stdenv
, cmake
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "h3";
version = "3.7.2";
src = fetchFromGitHub {
owner = "uber";
repo = "h3";
rev = "v${version}";
sha256 = "sha256-MvWqQraTnab6EuDx4V0v8EvrFWHT95f2EHTL2p2kei8=";
};
nativeBuildInputs = [ cmake ];
cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON"
"-DENABLE_LINTING=OFF"
];
meta = with lib; {
homepage = "https://github.com/uber/h3";
description = "Hexagonal hierarchical geospatial indexing system";
license = licenses.asl20;
maintainers = [ maintainers.kalbasit ];
};
}