Files
nixpkgs/pkgs/development/misc/h3/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

62 lines
1.4 KiB
Nix

{
lib,
stdenv,
cmake,
fetchFromGitHub,
withFilters ? false,
}:
let
generic =
{ version, hash }:
stdenv.mkDerivation {
inherit version;
pname = "h3";
src = fetchFromGitHub {
owner = "uber";
repo = "h3";
tag = "v${version}";
inherit hash;
};
outputs = [
"out"
"dev"
];
nativeBuildInputs = [ cmake ];
cmakeFlags = [
(lib.cmakeBool "BUILD_SHARED_LIBS" true)
(lib.cmakeBool "BUILD_BENCHMARKS" false)
(lib.cmakeBool "BUILD_FUZZERS" false)
(lib.cmakeBool "BUILD_GENERATORS" false)
(lib.cmakeBool "ENABLE_COVERAGE" false)
(lib.cmakeBool "ENABLE_FORMAT" false)
(lib.cmakeBool "ENABLE_LINTING" false)
(lib.cmakeBool "BUILD_FILTERS" withFilters)
];
meta = {
homepage = "https://h3geo.org/";
description = "Hexagonal hierarchical geospatial indexing system";
license = lib.licenses.asl20;
changelog = "https://github.com/uber/h3/raw/v${version}/CHANGELOG.md";
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ kalbasit ];
};
};
in
{
h3_3 = generic {
version = "3.7.2";
hash = "sha256-MvWqQraTnab6EuDx4V0v8EvrFWHT95f2EHTL2p2kei8=";
};
h3_4 = generic {
version = "4.3.0";
hash = "sha256-DUILKZ1QvML6qg+WdOxir6zRsgTvk+En6yjeFf6MQBg=";
};
}