nixpkgs/pkgs/servers/pg_tileserv/default.nix

28 lines
712 B
Nix
Raw Normal View History

2020-10-11 13:11:24 +03:00
{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "pg_tileserv";
2021-02-12 00:04:43 +03:00
version = "1.0.7";
2020-10-11 13:11:24 +03:00
src = fetchFromGitHub {
owner = "CrunchyData";
repo = pname;
rev = "v${version}";
2021-02-12 00:04:43 +03:00
sha256 = "sha256-PHF8n0rjxvajyC/y2sFcdvxQdDFXkxcDZOkYT10UsE4=";
2020-10-11 13:11:24 +03:00
};
2021-01-22 22:00:53 +03:00
vendorSha256 = "sha256-qdlh9H039GwKTxOhx+dzyUHkzJbaOeuguKnBOyAPe/E=";
2020-12-04 23:05:01 +03:00
buildFlagsArray = [ "-ldflags=-s -w -X main.programVersion=${version}" ];
2020-10-11 13:11:24 +03: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;
};
}