3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/misc/h3/default.nix

31 lines
601 B
Nix
Raw Normal View History

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