504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
30 lines
918 B
Nix
30 lines
918 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "tile38";
|
|
version = "1.32.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "tidwall";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-hG+ad68Q4KjtovmTlS/63NQxCQ9ZkcC8lrNGfhE9C6U=";
|
|
};
|
|
|
|
vendorHash = "sha256-5mkxTumqLP+fEBTwhJrPpteeDPTN9hLEAh6A4l4lQhs=";
|
|
|
|
subPackages = [ "cmd/tile38-cli" "cmd/tile38-server" ];
|
|
|
|
ldflags = [ "-s" "-w" "-X github.com/tidwall/tile38/core.Version=${version}" ];
|
|
|
|
meta = with lib; {
|
|
description = "Real-time Geospatial and Geofencing";
|
|
longDescription = ''
|
|
Tile38 is an in-memory geolocation data store, spatial index, and realtime geofence.
|
|
It supports a variety of object types including lat/lon points, bounding boxes, XYZ tiles, Geohashes, and GeoJSON.
|
|
'';
|
|
homepage = "https://tile38.com/";
|
|
license = licenses.mit;
|
|
maintainers = teams.geospatial.members;
|
|
};
|
|
}
|