nixpkgs-suyu/pkgs/servers/tegola/default.nix

26 lines
667 B
Nix
Raw Normal View History

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