Merge pull request #302483 from r-ryantm/auto-update/tegola

tegola: 0.19.0 -> 0.20.0
This commit is contained in:
Nikolay Korotkiy 2024-04-13 20:57:51 +04:00 committed by GitHub
commit bc4f8004d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 48 additions and 29 deletions

View file

@ -0,0 +1,48 @@
{ lib, buildGoModule, buildNpmPackage, fetchFromGitHub }:
let
version = "0.20.0";
src = fetchFromGitHub {
owner = "go-spatial";
repo = "tegola";
rev = "v${version}";
sha256 = "sha256-Jlpw3JaU5+DO7Z5qruEMoLRf95cPGd9Z+MeDGSgbMjc=";
};
frontend = buildNpmPackage {
pname = "tegola-ui";
inherit version;
src = "${src}/ui";
npmDepsHash = "sha256-rhUdWt1X5/F0uvT8gI1T9ei6Y+HK1tKj2fuTKlMAwJk=";
installPhase = ''
cp -r dist $out
'';
};
in
buildGoModule {
pname = "tegola";
inherit version src;
vendorHash = null;
subPackages = [ "cmd/tegola" ];
ldflags = [ "-s" "-w" "-X github.com/go-spatial/tegola/internal/build.Version=${version}" ];
preBuild = ''
rm -rf ui/dist
cp -r ${frontend} ui/dist
go generate ./server
'';
meta = with lib; {
homepage = "https://www.tegola.io/";
description = "Mapbox Vector Tile server";
mainProgram = "tegola";
maintainers = with maintainers; teams.geospatial.members ++ [ ingenieroariel ];
license = licenses.mit;
};
}

View file

@ -1,27 +0,0 @@
{ lib, buildGoModule, fetchFromGitHub }:
buildGoModule rec {
pname = "tegola";
version = "0.19.0";
src = fetchFromGitHub {
owner = "go-spatial";
repo = "tegola";
rev = "v${version}";
sha256 = "sha256-Z72QANnkAOg0le6p0lFJUhlgE/U32Ao+M/yog00gSF4=";
};
vendorHash = null;
subPackages = [ "cmd/tegola" ];
ldflags = [ "-s" "-w" "-X github.com/go-spatial/tegola/internal/build.Version=${version}" ];
meta = with lib; {
homepage = "https://www.tegola.io/";
description = "Mapbox Vector Tile server";
mainProgram = "tegola";
maintainers = with maintainers; [ ingenieroariel ];
license = licenses.mit;
};
}

View file

@ -27042,8 +27042,6 @@ with pkgs;
pg_tileserv = callPackage ../servers/geospatial/pg_tileserv { };
tegola = callPackage ../servers/geospatial/tegola { };
tile38 = callPackage ../servers/geospatial/tile38 { };
### OS-SPECIFIC