2020-10-11 11:11:24 +01:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "pg_tileserv";
|
2020-12-04 20:05:01 +00:00
|
|
|
version = "1.0.4";
|
2020-10-11 11:11:24 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CrunchyData";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-12-04 20:05:01 +00:00
|
|
|
sha256 = "1vdxnh1s8r8ydsjnj70s69nifhpyicb4jmgd5j7i49cr096jg526";
|
2020-10-11 11:11:24 +01:00
|
|
|
};
|
|
|
|
|
2020-12-04 20:05:01 +00:00
|
|
|
vendorSha256 = "1wbv1wh3phd9p2hfnffsjv6f8hf9fgkwg88k9w56rx1pgps63nd9";
|
|
|
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|