commit 649b613999b8f47f6446a7516cadc7ec96cc9e6e parent 3cfdfd9b90c82321adbbe0f92f3d69b8629dcdee Author: Nikolay Korotkiy <sikmir@gmail.com> Date: Wed, 25 Aug 2021 10:03:03 +0300 Add geojson2dm Diffstat:
M | pkgs/default.nix | | | 1 | + |
A | pkgs/gpx/geojson2dm/default.nix | | | 23 | +++++++++++++++++++++++ |
2 files changed, 24 insertions(+), 0 deletions(-)
diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -204,6 +204,7 @@ lib.makeScope newScope ( ### GPX cmpgpx = callPackage ./gpx/cmpgpx { }; + geojson2dm = callPackage ./gpx/geojson2dm { }; gpx-animator = callPackage ./gpx/gpx-animator { }; gpx-cmd-tools = callPackage ./gpx/gpx-cmd-tools { }; gpx-interpolate = callPackage ./gpx/gpx-interpolate { }; diff --git a/pkgs/gpx/geojson2dm/default.nix b/pkgs/gpx/geojson2dm/default.nix @@ -0,0 +1,23 @@ +{ lib, stdenv, fetchFromSourcehut }: + +stdenv.mkDerivation rec { + pname = "geojson2dm"; + version = "2021-08-25"; + + src = fetchFromSourcehut { + owner = "~sikmir"; + repo = pname; + rev = "64357dfb409f891be1afd5261b918b8bb9987774"; + sha256 = "sha256-82RYdC1tUYwYZELTHOC+Llz+KcdLgyi2B9wEWekDRww="; + }; + + installFlags = [ "PREFIX=$(out)" ]; + + meta = with lib; { + description = "Convert GeoJSON to format suitable for input to datamaps"; + homepage = "https://git.sikmir.ru/geojson2dm"; + license = licenses.isc; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +}