depot/third_party/nixpkgs/pkgs/servers/geospatial/tile38/default.nix
Default email 6d4aeb4377 Project import generated by Copybara.
GitOrigin-RevId: 0f213d0fee84280d8c3a97f7469b988d6fe5fcdf
2023-01-11 08:51:40 +01:00

30 lines
924 B
Nix

{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "tile38";
version = "1.30.2";
src = fetchFromGitHub {
owner = "tidwall";
repo = pname;
rev = version;
sha256 = "sha256-M/qH/EVe1T16XyRiUy8sfXvgxmZE+pK3zFTagFoOLN4=";
};
vendorSha256 = "sha256-KOoSIVCbWlLenFP4SFBXPbZW9KUSL9KTcLXED72tABo=";
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 ];
};
}