2020-11-21 19:51:51 +00:00
|
|
|
{ lib, fetchFromGitHub, buildGoModule }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "pg_featureserv";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "1.3.0";
|
2020-11-21 19:51:51 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "CrunchyData";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-07-15 17:15:38 +00:00
|
|
|
sha256 = "sha256-Kii9Qbff6dIAaHx3QfNPTg8g+QrBpZghGlHxrsGaMbo=";
|
2020-11-21 19:51:51 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
vendorHash = "sha256-BHiEVyi3FXPovYy3iDP8q+y+LgfI4ElDPVZexd7nnuo=";
|
2020-11-21 19:51:51 +00:00
|
|
|
|
2021-08-27 14:25:00 +00:00
|
|
|
ldflags = [ "-s" "-w" "-X github.com/CrunchyData/pg_featureserv/conf.setVersion=${version}" ];
|
2020-12-07 07:45:13 +00:00
|
|
|
|
2020-11-21 19:51:51 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Lightweight RESTful Geospatial Feature Server for PostGIS in Go";
|
|
|
|
homepage = "https://github.com/CrunchyData/pg_featureserv";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ sikmir ];
|
|
|
|
};
|
|
|
|
}
|