depot/third_party/nixpkgs/pkgs/servers/tegola/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

27 lines
694 B
Nix

{ lib, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
pname = "tegola";
version = "0.12.1";
goPackagePath = "github.com/go-spatial/tegola";
src = fetchFromGitHub {
owner = "go-spatial";
repo = pname;
rev = "v${version}";
sha256 = "0x8wv9xx0dafn55y0i7x43plg1blnslzj0l5047laipw7gnmfwad";
};
buildFlagsArray = [ "-ldflags=-s -w -X ${goPackagePath}/cmd/tegola/cmd.Version=${version}" ];
excludedPackages = [ "example" ];
meta = with lib; {
homepage = "https://www.tegola.io/";
description = "Mapbox Vector Tile server";
maintainers = with maintainers; [ ingenieroariel ];
platforms = platforms.unix;
license = licenses.mit;
};
}