From 1301359d26fbf42a6b12ce1e4b0d2587e2ad6b62 Mon Sep 17 00:00:00 2001 From: "Wael M. Nasreddine" Date: Tue, 16 Jul 2019 17:01:33 -0700 Subject: [PATCH] h3: init at 3.4.4 --- pkgs/development/misc/h3/default.nix | 29 ++++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/development/misc/h3/default.nix diff --git a/pkgs/development/misc/h3/default.nix b/pkgs/development/misc/h3/default.nix new file mode 100644 index 00000000000..22ada120512 --- /dev/null +++ b/pkgs/development/misc/h3/default.nix @@ -0,0 +1,29 @@ +{ stdenv +, cmake +, fetchFromGitHub +}: + +stdenv.mkDerivation rec { + pname = "h3"; + version = "3.4.4"; + + src = fetchFromGitHub { + owner = "uber"; + repo = "h3"; + rev = "v${version}"; + sha256 = "0d0730iwz290qcryj0ij1mnvmx89plcrg21czw5y4k63wlq8ppfg"; + }; + + nativeBuildInputs = [ cmake ]; + + cmakeFlags = [ + "-DBUILD_SHARED_LIBS=ON" + ]; + + meta = with stdenv.lib; { + homepage = "https://github.com/uber/h3"; + description = "Hexagonal hierarchical geospatial indexing system"; + license = licenses.asl20; + maintainers = [ maintainers.kalbasit ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 91294cdf597..20c8701aa47 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -9470,6 +9470,8 @@ in samples = true; }; + h3 = callPackage ../development/misc/h3 { }; + amtk = callPackage ../development/libraries/amtk { }; avrlibc = callPackage ../development/misc/avr/libc {};