Merge pull request #244725 from sikmir/pg_tileserv

pg_tileserv: 1.0.9 → 1.0.10

authored by Mario Rodas and committed by GitHub d7037fa4 300a19f9

+15 -5
+15 -5
pkgs/servers/geospatial/pg_tileserv/default.nix
··· 1 - { lib, fetchFromGitHub, buildGoModule }: 2 3 buildGoModule rec { 4 pname = "pg_tileserv"; 5 - version = "1.0.9"; 6 7 src = fetchFromGitHub { 8 owner = "CrunchyData"; 9 - repo = pname; 10 rev = "v${version}"; 11 - sha256 = "sha256-pNm802DJu5t+Y9QZU6wDUcAVpJTZ4SxDK0J61wzuuRE="; 12 }; 13 14 - vendorSha256 = "sha256-iw9bIh1Ngj5IGhrZwmSPciyaAR73msZ283TB0ibwt+c="; 15 16 ldflags = [ "-s" "-w" "-X main.programVersion=${version}" ]; 17
··· 1 + { lib, fetchFromGitHub, fetchpatch, buildGoModule }: 2 3 buildGoModule rec { 4 pname = "pg_tileserv"; 5 + version = "1.0.10"; 6 7 src = fetchFromGitHub { 8 owner = "CrunchyData"; 9 + repo = "pg_tileserv"; 10 rev = "v${version}"; 11 + hash = "sha256-Y8GAmWpnXQGmFcy44wFUQGpA8OvT7u1rY1ZGNg1Qwgs="; 12 }; 13 14 + patches = [ 15 + # Without this, we get error messages like: 16 + # vendor/golang.org/x/sys/unix/syscall.go:83:16: unsafe.Slice requires go1.17 or later (-lang was set to go1.16; check go.mod) 17 + # The patch was generated by changing "go 1.15" to "go 1.17" and executing `go mod tidy`. 18 + (fetchpatch { 19 + url = "https://github.com/CrunchyData/pg_tileserv/commit/d8e01469344895267ead9fa35ee7bdb8f966a710.patch"; 20 + hash = "sha256-1P3dV8h51X+MEH2u1n6RxZvBPXBpQWrZBBCTOoCEWQU="; 21 + }) 22 + ]; 23 + 24 + vendorHash = "sha256-gXJFuvJ2d/e91TAtBzV3p2MwriJtUlIuNRw1+3iXJBA="; 25 26 ldflags = [ "-s" "-w" "-X main.programVersion=${version}" ]; 27