depot/third_party/nixpkgs/pkgs/servers/geospatial/tile38/default.nix
Default email d5f4a57cbf Project import generated by Copybara.
GitOrigin-RevId: ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e
2023-08-10 09:59:29 +02:00

30 lines
922 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "tile38";
version = "1.32.0";
src = fetchFromGitHub {
owner = "tidwall";
repo = pname;
rev = version;
sha256 = "sha256-NSoi7CsxL+6DoKZZal+xhjlSz+9N9CFyzlMrTYHbiW8=";
};
vendorHash = "sha256-Vy5ct5JP2t3085TM4CCWVEAQR4mAqVbGM5JE2KctSlU=";
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 = with maintainers; [ sikmir ];
};
}