2020-10-11 11:11:24 +01:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "pg_tileserv";
|
2021-08-05 04:00:11 +01:00
|
|
|
version = "1.0.8";
|
2020-10-11 11:11:24 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CrunchyData";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-08-05 04:00:11 +01:00
|
|
|
sha256 = "07xj807cbggnh8k7d2i7h326p4wjb8sz5ng0hbdnznvyc4sb2cdw";
|
2020-10-11 11:11:24 +01:00
|
|
|
};
|
|
|
|
|
2021-01-22 19:00:53 +00:00
|
|
|
vendorSha256 = "sha256-qdlh9H039GwKTxOhx+dzyUHkzJbaOeuguKnBOyAPe/E=";
|
2020-12-04 20:05:01 +00:00
|
|
|
|
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X main.programVersion=${version}" ];
|
2020-10-11 11:11:24 +01: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;
|
|
|
|
maintainers = with maintainers; [ sikmir ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|