nixpkgs/pkgs/development/misc/h3/default.nix

31 lines
604 B
Nix
Raw Normal View History

2019-07-17 02:01:33 +02:00
{ stdenv
, cmake
, fetchFromGitHub
}:
stdenv.mkDerivation rec {
pname = "h3";
2020-01-04 20:53:59 +01:00
version = "3.6.2";
2019-07-17 02:01:33 +02:00
src = fetchFromGitHub {
owner = "uber";
repo = "h3";
rev = "v${version}";
2020-01-04 20:53:59 +01:00
sha256 = "0mlv3jk0j340l0bhr3brxm3hbdcfmyp86h7d85537c81cl64y7kg";
2019-07-17 02:01:33 +02:00
};
nativeBuildInputs = [ cmake ];
cmakeFlags = [
"-DBUILD_SHARED_LIBS=ON"
"-DENABLE_LINTING=OFF"
2019-07-17 02:01:33 +02:00
];
meta = with stdenv.lib; {
homepage = "https://github.com/uber/h3";
description = "Hexagonal hierarchical geospatial indexing system";
license = licenses.asl20;
maintainers = [ maintainers.kalbasit ];
};
}