2019-01-21 13:42:21 -08:00
|
|
|
{ stdenv, buildGoPackage, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoPackage rec {
|
2019-08-15 05:41:18 -07:00
|
|
|
pname = "tegola";
|
2020-09-26 16:03:56 -07:00
|
|
|
version = "0.12.1";
|
2019-01-21 13:42:21 -08:00
|
|
|
|
|
|
|
goPackagePath = "github.com/go-spatial/tegola";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "go-spatial";
|
2020-06-06 01:29:08 -07:00
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2020-09-26 16:03:56 -07:00
|
|
|
sha256 = "0x8wv9xx0dafn55y0i7x43plg1blnslzj0l5047laipw7gnmfwad";
|
2019-01-21 13:42:21 -08:00
|
|
|
};
|
|
|
|
|
2020-08-26 17:13:41 -07:00
|
|
|
buildFlagsArray = [ "-ldflags=-s -w -X ${goPackagePath}/cmd/tegola/cmd.Version=${version}" ];
|
|
|
|
|
2020-09-26 21:20:00 -07:00
|
|
|
excludedPackages = [ "example" ];
|
|
|
|
|
2019-01-21 13:42:21 -08:00
|
|
|
meta = with stdenv.lib; {
|
2020-03-31 18:11:51 -07:00
|
|
|
homepage = "https://www.tegola.io/";
|
2019-01-21 13:42:21 -08:00
|
|
|
description = "Mapbox Vector Tile server";
|
|
|
|
maintainers = with maintainers; [ ingenieroariel ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|