nur-packages

My NUR packages
git clone git://git.sikmir.ru/nur-packages
Log | Files | Refs | README | LICENSE

commit 3c7b697f5f676a3bf4fa9c292b90363b760218e6
parent c7a60d1794e8b10f344ebe3a3be67b36afc649ab
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Mon, 31 Aug 2020 15:22:18 +0300

Add go-staticmaps

Diffstat:
Mnix/sources.json | 14++++++++++++++
Mpkgs/default.nix | 1+
Apkgs/tools/geo/go-staticmaps/default.nix | 19+++++++++++++++++++
3 files changed, 34 insertions(+), 0 deletions(-)

diff --git a/nix/sources.json b/nix/sources.json @@ -205,6 +205,20 @@ "url": "https://github.com/glauth/glauth/archive/a92f9a7028fdf68952ffbed4958167b928dbc483.tar.gz", "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" }, + "go-staticmaps": { + "branch": "master", + "builtin": false, + "date": "2020-08-29T09:01:08Z", + "description": "A go (golang) library and command line tool to render static map images using OpenStreetMap tiles", + "homepage": "https://github.com/flopp/go-staticmaps", + "owner": "flopp", + "repo": "go-staticmaps", + "rev": "3465b33495460ac1e01854598dde81cd606addd5", + "sha256": "0g7px1rrqwpvnyvmmq3ia6da4lwyzjyf1a0fhjpgcjyy1g1z915s", + "type": "tarball", + "url": "https://github.com/flopp/go-staticmaps/archive/3465b33495460ac1e01854598dde81cd606addd5.tar.gz", + "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" + }, "gpx-layer": { "branch": "master", "builtin": false, diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -126,6 +126,7 @@ lib.makeScope newScope ( garmin-uploader = callPackage ./tools/misc/garmin-uploader { }; gimgtools = callPackage ./tools/geo/gimgtools { }; gmaptool = callPackage ./tools/geo/gmaptool { }; + go-staticmaps = callPackage ./tools/geo/go-staticmaps { }; gpx-layer = perlPackages.callPackage ./tools/geo/gpx-layer { inherit sources; }; diff --git a/pkgs/tools/geo/go-staticmaps/default.nix b/pkgs/tools/geo/go-staticmaps/default.nix @@ -0,0 +1,19 @@ +{ lib, buildGoModule, sources }: +let + pname = "go-staticmaps"; + date = lib.substring 0 10 sources.go-staticmaps.date; + version = "unstable-" + date; +in +buildGoModule { + inherit pname version; + src = sources.go-staticmaps; + + vendorSha256 = "13zp6fxjmaxnn2ald8n9gjlx225w9bvq1xwibns1bdsq2c6gyffz"; + + meta = with lib; { + inherit (sources.go-staticmaps) description homepage; + license = licenses.mit; + maintainers = [ maintainers.sikmir ]; + platforms = platforms.unix; + }; +}