commit 672fc62e79531e072de23f31f158bf58e4b8c71d
parent b768fc8c77b2f3a267e32e66f769210d9d252275
Author: Nikolay Korotkiy <sikmir@gmail.com>
Date: Sun, 11 Oct 2020 18:01:12 +0300
Add pg_featureserv
Diffstat:
3 files changed, 34 insertions(+), 0 deletions(-)
diff --git a/nix/sources.json b/nix/sources.json
@@ -715,6 +715,20 @@
"url": "https://github.com/liosha/osm2mp/archive/748f93792ead174ad0e94a183a173ef3fcacf200.tar.gz",
"url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
},
+ "pg-featureserv": {
+ "branch": "master",
+ "builtin": false,
+ "date": "2020-08-31T21:37:46Z",
+ "description": "Lightweight RESTful Geospatial Feature Server for PostGIS in Go",
+ "homepage": "https://github.com/CrunchyData/pg_featureserv",
+ "owner": "CrunchyData",
+ "repo": "pg_featureserv",
+ "rev": "c04ee5400383a3226706bfff33af66cb97e1ae76",
+ "sha256": "0z5wigb3l8q00dhzy0pjfgv9w4k9d3lqrdlazif843dgchd3jb8q",
+ "type": "tarball",
+ "url": "https://github.com/CrunchyData/pg_featureserv/archive/c04ee5400383a3226706bfff33af66cb97e1ae76.tar.gz",
+ "url_template": "https://github.com/<owner>/<repo>/archive/<rev>.tar.gz"
+ },
"pg-tileserv": {
"branch": "master",
"builtin": false,
diff --git a/pkgs/default.nix b/pkgs/default.nix
@@ -187,6 +187,7 @@ lib.makeScope newScope (
glauth = callPackage ./servers/glauth { };
mbtileserver = callPackage ./servers/mbtileserver { };
nakarte = callPackage ./servers/nakarte { };
+ pg_featureserv = callPackage ./servers/pg_featureserv { };
pg_tileserv = callPackage ./servers/pg_tileserv { };
quark = callPackage ./servers/quark { };
shavit = callPackage ./servers/shavit { };
diff --git a/pkgs/servers/pg_featureserv/default.nix b/pkgs/servers/pg_featureserv/default.nix
@@ -0,0 +1,19 @@
+{ lib, buildGoModule, sources }:
+let
+ pname = "pg_featureserv";
+ date = lib.substring 0 10 sources.pg-featureserv.date;
+ version = "unstable-" + date;
+in
+buildGoModule {
+ inherit pname version;
+ src = sources.pg-featureserv;
+
+ vendorSha256 = "1jqrkx850ghmpnfjhqky93r8fq7q63m5ivs0lzljzbvn7ya75f2r";
+
+ meta = with lib; {
+ inherit (sources.pg-featureserv) description homepage;
+ license = licenses.asl20;
+ maintainers = [ maintainers.sikmir ];
+ platforms = platforms.unix;
+ };
+}