summary refs log blame commit diff
path: root/pkgs/development/misc/h3/default.nix
blob: 99b7f8fdc325efd80aa1db554d0238816c90cc17 (plain) (tree)
1
2
3
4
5
6
7
8
9

        





                         
                    




                         
                                                                   





                                
                          

    
                    
                                    

                                                                      

                                                                          


                                           
{ 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://h3geo.org/";
    description = "Hexagonal hierarchical geospatial indexing system";
    license = licenses.asl20;
    changelog = "https://github.com/uber/h3/raw/v${version}/CHANGELOG.md";
    platforms = platforms.all;
    maintainers = [ maintainers.kalbasit ];
  };
}