Skip to content

Commit

Permalink
Merge pull request #302483 from r-ryantm/auto-update/tegola
Browse files Browse the repository at this point in the history
tegola: 0.19.0 -> 0.20.0
  • Loading branch information
sikmir authored Apr 13, 2024
2 parents 59778b7 + ac9cc54 commit bc4f800
Show file tree
Hide file tree
Showing 3 changed files with 48 additions and 29 deletions.
48 changes: 48 additions & 0 deletions pkgs/by-name/te/tegola/package.nix
Original file line number Diff line number Diff line change
@@ -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;
};
}
27 changes: 0 additions & 27 deletions pkgs/servers/geospatial/tegola/default.nix

This file was deleted.

2 changes: 0 additions & 2 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bc4f800

Please sign in to comment.