commit eae0332cd6b8019293d1e856b5c8cc7eb22fd147 parent 5f9994f1005992569bbf93418cf4b8c3bb1cc952 Author: Nikolay Korotkiy <sikmir@disroot.org> Date: Tue, 18 Jan 2022 18:19:45 +0300 Add go-pmtiles Diffstat:
M | pkgs/default.nix | | | 1 | + |
A | pkgs/geospatial/go-pmtiles/default.nix | | | 23 | +++++++++++++++++++++++ |
2 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -165,6 +165,7 @@ lib.makeScope newScope ( click = click-6-7; }; geographiclib = callPackage ./geospatial/geographiclib { }; + go-pmtiles = callPackage ./geospatial/go-pmtiles { }; go-staticmaps = callPackage ./geospatial/go-staticmaps { }; mapsoft = callPackage ./geospatial/mapsoft { proj = pkgs.proj_7; diff --git a/pkgs/geospatial/go-pmtiles/default.nix b/pkgs/geospatial/go-pmtiles/default.nix @@ -0,0 +1,23 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "go-pmtiles"; + version = "2021-12-21"; + + src = fetchFromGitHub { + owner = "protomaps"; + repo = pname; + rev = "82ab855965337a9497eb6d1ff1026c125b8c2a7d"; + hash = "sha256-jUDaTQ4vImKWaSAdKrIZqO7YjwWvzi1ob7MTbieDeCQ="; + }; + + vendorSha256 = null; + + meta = with lib; { + description = "Read/write library & concurrent caching proxy for PMTiles archives"; + inherit (src.meta) homepage; + license = licenses.bsd3; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +}