2023-08-04 22:07:22 +00:00
|
|
|
{ lib, fetchFromGitHub, fetchpatch, buildGoModule }:
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "pg_tileserv";
|
2024-02-07 01:22:34 +00:00
|
|
|
version = "1.0.11";
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CrunchyData";
|
2023-08-04 22:07:22 +00:00
|
|
|
repo = "pg_tileserv";
|
2020-10-16 20:44:37 +00:00
|
|
|
rev = "v${version}";
|
2024-02-07 01:22:34 +00:00
|
|
|
hash = "sha256-xTIx39eLmHBUlaUjQy9KGpi5X4AU93DzX+Ofg5PMLWE=";
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
|
|
|
|
2024-02-07 01:22:34 +00:00
|
|
|
vendorHash = "sha256-8CvYvoIKOYvR7npCV65ZqZGR8KCTH4GabTt/JGQG3uc=";
|
2020-12-07 07:45:13 +00:00
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X main.programVersion=${version}" ];
|
2020-10-16 20:44:37 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A very thin PostGIS-only tile server in Go";
|
|
|
|
homepage = "https://github.com/CrunchyData/pg_tileserv";
|
|
|
|
license = licenses.asl20;
|
2024-01-02 11:29:13 +00:00
|
|
|
maintainers = teams.geospatial.members;
|
2020-10-16 20:44:37 +00:00
|
|
|
};
|
|
|
|
}
|