commit feb22bf184cdc2f2373fdb76f4c3e1ba9ae6115b parent d3788625d20832b508530c5ff3adbb6113c0e35b Author: Nikolay Korotkiy <sikmir@gmail.com> Date: Fri, 27 Aug 2021 16:24:48 +0300 Add vt2geojson Diffstat:
M | pkgs/default.nix | | | 1 | + |
A | pkgs/tools/geo/vt2geojson/default.nix | | | 23 | +++++++++++++++++++++++ |
2 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -119,6 +119,7 @@ lib.makeScope newScope ( tile-stitch = callPackage ./tools/geo/tile-stitch { }; tilesets-cli = callPackage ./tools/geo/tilesets-cli { }; tpkutils = callPackage ./tools/geo/tpkutils { }; + vt2geojson = callPackage ./tools/geo/vt2geojson { }; ### DICT diff --git a/pkgs/tools/geo/vt2geojson/default.nix b/pkgs/tools/geo/vt2geojson/default.nix @@ -0,0 +1,23 @@ +{ lib, buildGoModule, fetchFromGitHub }: + +buildGoModule rec { + pname = "vt2geojson"; + version = "0.1.6"; + + src = fetchFromGitHub { + owner = "wangyoucao577"; + repo = pname; + rev = "v${version}"; + hash = "sha256-2wBMWrraWFDLHc/s/RMW4a4moftwTFeBj7FfaCJgdU0="; + }; + + vendorSha256 = "sha256-FnLxhhytgNC4OIvh9pUM+cVDdNfqVOocjmkzFDU1fmA="; + + meta = with lib; { + description = "Command line tool to dump Mapbox Vector Tiles to GeoJSON"; + inherit (src.meta) homepage; + license = licenses.mit; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +}