summary refs log tree commit diff
path: root/pkgs/servers/geospatial/tegola/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/servers/geospatial/tegola/default.nix')
-rw-r--r--pkgs/servers/geospatial/tegola/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/servers/geospatial/tegola/default.nix b/pkgs/servers/geospatial/tegola/default.nix
new file mode 100644
index 00000000000..14c1b36581c
--- /dev/null
+++ b/pkgs/servers/geospatial/tegola/default.nix
@@ -0,0 +1,27 @@
+{ lib, buildGoModule, fetchFromGitHub }:
+
+buildGoModule rec {
+  pname = "tegola";
+  version = "0.15.0";
+
+  src = fetchFromGitHub {
+    owner = "go-spatial";
+    repo = pname;
+    rev = "v${version}";
+    sha256 = "sha256-RSuTZHv3W2SVPAkydz5yB89Ioynp0DO0qaQKut5tokc=";
+  };
+
+  vendorSha256 = 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";
+    maintainers = with maintainers; [ ingenieroariel ];
+    platforms = platforms.unix;
+    license = licenses.mit;
+  };
+}