nixpkgs/pkgs/servers/geospatial/pg_tileserv/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

28 lines
699 B
Nix
Raw Normal View History

2020-10-11 10:11:24 +00:00
{ lib, fetchFromGitHub, buildGoModule }:
buildGoModule rec {
pname = "pg_tileserv";
2022-07-31 00:04:13 +00:00
version = "1.0.9";
2020-10-11 10:11:24 +00:00
src = fetchFromGitHub {
owner = "CrunchyData";
repo = pname;
rev = "v${version}";
2022-07-31 00:04:13 +00:00
sha256 = "sha256-pNm802DJu5t+Y9QZU6wDUcAVpJTZ4SxDK0J61wzuuRE=";
2020-10-11 10:11:24 +00:00
};
2022-07-31 00:04:13 +00:00
vendorSha256 = "sha256-iw9bIh1Ngj5IGhrZwmSPciyaAR73msZ283TB0ibwt+c=";
2020-12-04 20:05:01 +00:00
2021-08-26 06:45:51 +00:00
ldflags = [ "-s" "-w" "-X main.programVersion=${version}" ];
2020-10-11 10:11:24 +00:00
doCheck = false;
meta = with lib; {
description = "A very thin PostGIS-only tile server in Go";
homepage = "https://github.com/CrunchyData/pg_tileserv";
license = licenses.asl20;
maintainers = with maintainers; [ sikmir ];
platforms = platforms.unix;
};
}