Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib, buildGoModule, fetchFromGitHub }:
2
3buildGoModule rec {
4 pname = "tile38";
5 version = "1.31.0";
6
7 src = fetchFromGitHub {
8 owner = "tidwall";
9 repo = pname;
10 rev = version;
11 sha256 = "sha256-aGt5iBVT5MTbnuoZ4zd5r6sIwmNKPo1J7UjDAefKfPo=";
12 };
13
14 vendorHash = "sha256-9KK1IRwERcJtVnK4y5l3Nr87I3hg7E8nJuJjRiCMCZk=";
15
16 subPackages = [ "cmd/tile38-cli" "cmd/tile38-server" ];
17
18 ldflags = [ "-s" "-w" "-X github.com/tidwall/tile38/core.Version=${version}" ];
19
20 meta = with lib; {
21 description = "Real-time Geospatial and Geofencing";
22 longDescription = ''
23 Tile38 is an in-memory geolocation data store, spatial index, and realtime geofence.
24 It supports a variety of object types including lat/lon points, bounding boxes, XYZ tiles, Geohashes, and GeoJSON.
25 '';
26 homepage = "https://tile38.com/";
27 license = licenses.mit;
28 maintainers = with maintainers; [ sikmir ];
29 };
30}