diff --git a/nix/sources.json b/nix/sources.json
index aeffab13730668feb7c65041f81f5782b7188a4f..3fc226bacb6a9b5654e79258133e756f68604306 100644
--- a/nix/sources.json
+++ b/nix/sources.json
@@ -83,20 +83,6 @@ "type": "tarball",
"url": "https://github.com/bopen/elevation/archive/6819b2931f5de412bd6b18bd07f1674f71fa35e5.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"branch": "master",
"builtin": false,
"date": "2020-12-05T18:04:12Z",
"description": "The server providing elevation data for https://nakarte.me written in go",
"homepage": "https://github.com/wladich/elevation_server",
"owner": "wladich",
"repo": "elevation_server",
"rev": "ed023fee8e7a4347f240d35fc0c855fdfff0464f",
"sha256": "0187ygkk5g2xz2vfnl49xbgqgvkbnxy18xvakfb5y8fahdp42sns",
"type": "tarball",
"url": "https://github.com/wladich/elevation_server/archive/ed023fee8e7a4347f240d35fc0c855fdfff0464f.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
"foma": {
"branch": "master",
"builtin": false,
@@ -191,20 +177,6 @@ "type": "tarball",
"url": "https://github.com/glauth/glauth/archive/5681dc4d0236c49e549ae7804ef2f4e4455340e4.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"branch": "master",
"builtin": false,
"date": "2021-02-06T12:36:33Z",
"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": "1292f1734c3cad612ff67b4598f1a0cdc3d6fa7c",
"sha256": "1vhl8vv2136a83n9js5098r6irw2cad0yl7zq3i3zwg62jjdaygd",
"type": "tarball",
"url": "https://github.com/flopp/go-staticmaps/archive/1292f1734c3cad612ff67b4598f1a0cdc3d6fa7c.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
"gpx-interpolate": {
"branch": "master",
"builtin": false,
@@ -288,20 +260,6 @@ "sha256": "06q9kyhjsp1sjgfdrd5chkr49d1dq0csh898hhzhpigb1jzxsjhs",
"type": "tarball",
"url": "https://notabug.org/irdvo/gpxtools/archive/919fb5953af8de1e71f61244eb70dd56b670a429.tar.gz",
"url_template": "https://notabug.org/<owner>/<repo>/archive/<rev>.tar.gz"
"branch": "master",
"builtin": false,
"date": "2021-03-04T17:23:25Z",
"description": "Create a visually appealing poster from your GPX tracks",
"homepage": "https://github.com/flopp/GpxTrackPoster",
"owner": "flopp",
"repo": "GpxTrackPoster",
"rev": "0ea91a7231cb9aa3c11b3c1d6715cfc7c35cd6e6",
"sha256": "08w4zlc6f69x0cidd13m5lknj1bgsa57rmv6rr2sh1g68v47rb0b",
"type": "tarball",
"url": "https://github.com/flopp/GpxTrackPoster/archive/0ea91a7231cb9aa3c11b3c1d6715cfc7c35cd6e6.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"gt-bash-client": {
"branch": "master",
@@ -578,20 +536,6 @@ "rev": "bceb8e2a08cca29cef1df074eb1a1f6450cc163f",
"sha256": "0d8281q3rdxzrxr5y9bxjkq2s2sfl8fgkk9kqpmpp3z5hxg893jq",
"type": "tarball",
"url": "https://github.com/bmpix/PolyVectorization/archive/bceb8e2a08cca29cef1df074eb1a1f6450cc163f.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
"branch": "master",
"builtin": false,
"date": "2021-03-08T19:58:16Z",
"description": "A python module to create static map images with markers, geodesic lines, etc.",
"homepage": "https://github.com/flopp/py-staticmaps",
"owner": "flopp",
"repo": "py-staticmaps",
"rev": "d8f378e1cc4a8229645af1199adbdcbfe91a29b4",
"sha256": "01xkm5yrhix2g0y9f50x6yxybfzsbw1wpm2rjym2k9303hi1d2av",
"type": "tarball",
"url": "https://github.com/flopp/py-staticmaps/archive/d8f378e1cc4a8229645af1199adbdcbfe91a29b4.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
"pyephem": {
diff --git a/pkgs/nakarte/elevation_server/default.nix b/pkgs/nakarte/elevation_server/default.nix
index ccd55bbad0f702aad78403f63bb60a75edb7df30..853b64c580612161b6bd04f90657ad2448df9415 100644
--- a/pkgs/nakarte/elevation_server/default.nix
+++ b/pkgs/nakarte/elevation_server/default.nix
@@ -1,10 +1,15 @@
-{ lib, buildGoPackage, lz4, sources }:
+{ lib, fetchFromGitHub, buildGoPackage, lz4 }:
buildGoPackage rec {
goPackagePath = "github.com/wladich/elevation_server";
@@ -15,7 +20,8 @@
goDeps = ./deps.nix;
meta = with lib; {
license = licenses.free;
maintainers = [ maintainers.sikmir ];
platforms = platforms.unix;
diff --git a/pkgs/tools/geo/go-staticmaps/default.nix b/pkgs/tools/geo/go-staticmaps/default.nix
index 905c297c0e53a5bf9425408acd1a702ec319e568..bf0acbd3cdf3a4670f283be213e3c7021d407e17 100644
--- a/pkgs/tools/geo/go-staticmaps/default.nix
+++ b/pkgs/tools/geo/go-staticmaps/default.nix
@@ -1,15 +1,23 @@
-{ lib, buildGoModule, sources }:
+{ lib, buildGoModule, fetchFromGitHub }:
-buildGoModule {
+buildGoModule rec {
pname = "go-staticmaps";
meta = with lib; {
license = licenses.mit;
maintainers = [ maintainers.sikmir ];
platforms = platforms.unix;
diff --git a/pkgs/tools/geo/go-staticmaps/extra-tileproviders.patch b/pkgs/tools/geo/go-staticmaps/extra-tileproviders.patch
new file mode 100644
index 0000000000000000000000000000000000000000..b163c57363b5a384674f9aa0db26db5a06c6045d
--- /dev/null
+++ b/pkgs/tools/geo/go-staticmaps/extra-tileproviders.patch
@@ -0,0 +1,42 @@
+diff --git i/tile_provider.go w/tile_provider.go
+index a4b7f9b..62a56b6 100644
+--- i/tile_provider.go
++++ w/tile_provider.go
+@@ -143,6 +143,28 @@ func NewTileProviderArcgisWorldImagery() *TileProvider {
++// NewTileProviderOpenTopoMapRu creates a TileProvider struct for opentopomap's tile service
++func NewTileProviderOpenTopoMapRu() *TileProvider {
++ t := new(TileProvider)
++ t.Name = "opentopomapru"
++ t.Attribution = "Maps (c) OpenTopoMap.ru [CC-BY-SA]; Data (c) OSM and contributors [ODbL]; Data (c) SRTM"
++ t.TileSize = 256
++ t.URLPattern = "https://tile-%[1]s.opentopomap.ru/%[2]d/%[3]d/%[4]d.png"
++ t.Shards = []string{"a", "b", "c"}
++ return t
++}
++
++// NewTileProviderInkatlas creates a TileProvider struct for inkatlas's tile service
++func NewTileProviderInkatlas() *TileProvider {
++ t := new(TileProvider)
++ t.Name = "inkatlas"
++ t.Attribution = "Maps (c) Inkatlas OÜ; Data (c) OSM and contributors [ODbL]; Data (c) SRTM"
++ t.TileSize = 256
++ t.URLPattern = "https://tile.inkatlas.com/inkatlas/outdoor/%[2]d/%[3]d/%[4]d.png"
++ t.Shards = []string{}
++ return t
++}
++
+@@ -161,6 +183,8 @@ func GetTileProviders() map[string]*TileProvider {
NewTileProviderCartoLight(),
NewTileProviderCartoDark(),
NewTileProviderArcgisWorldImagery(),
++ NewTileProviderOpenTopoMapRu(),
++ NewTileProviderInkatlas(),
diff --git a/pkgs/tools/geo/gpxtrackposter/default.nix b/pkgs/tools/geo/gpxtrackposter/default.nix
index 6ef898217625aa2c3c49be8e31fe898346e6ea8f..5ea74faa120e6e4f23e097083067f49efa93eeea 100644
--- a/pkgs/tools/geo/gpxtrackposter/default.nix
+++ b/pkgs/tools/geo/gpxtrackposter/default.nix
@@ -1,10 +1,15 @@
-{ lib, python3Packages, s2sphere, sources }:
+{ lib, fetchFromGitHub, python3Packages, s2sphere }:
-python3Packages.buildPythonApplication {
+python3Packages.buildPythonApplication rec {
patches = [ ./fix-localedir.patch ];
@@ -45,7 +50,8 @@
postInstall = "rm -fr $out/requirements*.txt";
meta = with lib; {
license = licenses.mit;
maintainers = [ maintainers.sikmir ];
platforms = platforms.unix;
diff --git a/pkgs/tools/geo/py-staticmaps/default.nix b/pkgs/tools/geo/py-staticmaps/default.nix
index 60937b5f625d1693e1467b101e1cd8df130354d2..aca8ad28700737501fdb217389cc60a21a685794 100644
--- a/pkgs/tools/geo/py-staticmaps/default.nix
+++ b/pkgs/tools/geo/py-staticmaps/default.nix
@@ -1,17 +1,23 @@
-{ lib, python3Packages, s2sphere, sources }:
+{ lib, fetchFromGitHub, python3Packages, s2sphere }:
-python3Packages.buildPythonApplication {
+python3Packages.buildPythonApplication rec {
propagatedBuildInputs = with python3Packages; [ appdirs geographiclib pillow pycairo python-slugify requests s2sphere svgwrite ];
checkInputs = with python3Packages; [ pytestCheckHook ];
meta = with lib; {
license = licenses.mit;
maintainers = [ maintainers.sikmir ];
platforms = platforms.unix;
application/octet-stream
This content has been proxied by September (3851b).