nur-packages

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

commit 52a2a17663141579f18559bc43f556c227e5e6ab
parent 32f48b401d46cdf5de51b5587b9cc5fb5245211f
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date:   Thu,  9 Jul 2020 02:59:48 +0300

Add pg_tileserv

Diffstat:
Mnix/sources.json | 13+++++++++++++
Mpkgs/default.nix | 1+
Apkgs/servers/pg_tileserv/default.nix | 16++++++++++++++++
3 files changed, 30 insertions(+), 0 deletions(-)

diff --git a/nix/sources.json b/nix/sources.json @@ -512,6 +512,19 @@ "url": "https://github.com/liosha/osm2mp/archive/748f93792ead174ad0e94a183a173ef3fcacf200.tar.gz", "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" }, + "pg_tileserv": { + "branch": "master", + "builtin": false, + "description": "A very thin PostGIS-only tile server in Go. Takes in HTTP tile requests, executes SQL, returns MVT tiles.", + "homepage": "https://github.com/CrunchyData/pg_tileserv", + "owner": "CrunchyData", + "repo": "pg_tileserv", + "rev": "e668cc43f19fb5497b7283cfb1d6198fc9a5d2d6", + "sha256": "119y33cvk0mj9r7b3hz7n3q2qnf6qwj5mc6y2dgza20kahgbljji", + "type": "tarball", + "url": "https://github.com/CrunchyData/pg_tileserv/archive/e668cc43f19fb5497b7283cfb1d6198fc9a5d2d6.tar.gz", + "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz" + }, "pyephem": { "branch": "master", "builtin": false, diff --git a/pkgs/default.nix b/pkgs/default.nix @@ -171,6 +171,7 @@ lib.makeScope newScope ( mbtileserver = callPackage ./servers/mbtileserver { }; nakarte = callPackage ./servers/nakarte { }; + pg_tileserv = callPackage ./servers/pg_tileserv { }; shavit = callPackage ./servers/shavit { }; ### MISC diff --git a/pkgs/servers/pg_tileserv/default.nix b/pkgs/servers/pg_tileserv/default.nix @@ -0,0 +1,16 @@ +{ lib, buildGoModule, sources }: + +buildGoModule { + pname = "pg_tileserv"; + version = lib.substring 0 7 sources.pg_tileserv.rev; + src = sources.pg_tileserv; + + vendorSha256 = "1wpzj6par25z7cyyz6p41cxdll4nzb0jjdl1pffgawiy9z7j17vb"; + + meta = with lib; { + inherit (sources.pg_tileserv) description homepage; + license = licenses.asl20; + maintainers = with maintainers; [ sikmir ]; + platforms = platforms.unix; + }; +}