nixpkgs/pkgs/servers/tegola/default.nix

28 lines
704 B
Nix
Raw Normal View History

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