summary refs log tree commit diff
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2023-07-23 18:44:52 -0500
committerGitHub <noreply@github.com>2023-07-23 18:44:52 -0500
commitd7037fa447407bb6fd8319b2bd99538ac6e119ef (patch)
tree56ab230db247c2d8259a30557f9c883413d901e9
parent300a19f91b3c4a42878fc6aa470725b6f9c8db69 (diff)
parent1a161fbc1666f6b6409da5cd89769c1f882f598a (diff)
downloadnixpkgs-d7037fa447407bb6fd8319b2bd99538ac6e119ef.tar
nixpkgs-d7037fa447407bb6fd8319b2bd99538ac6e119ef.tar.gz
nixpkgs-d7037fa447407bb6fd8319b2bd99538ac6e119ef.tar.bz2
nixpkgs-d7037fa447407bb6fd8319b2bd99538ac6e119ef.tar.lz
nixpkgs-d7037fa447407bb6fd8319b2bd99538ac6e119ef.tar.xz
nixpkgs-d7037fa447407bb6fd8319b2bd99538ac6e119ef.tar.zst
nixpkgs-d7037fa447407bb6fd8319b2bd99538ac6e119ef.zip
Merge pull request #244725 from sikmir/pg_tileserv
pg_tileserv: 1.0.9 → 1.0.10
-rw-r--r--pkgs/servers/geospatial/pg_tileserv/default.nix20
1 files changed, 15 insertions, 5 deletions
diff --git a/pkgs/servers/geospatial/pg_tileserv/default.nix b/pkgs/servers/geospatial/pg_tileserv/default.nix
index 5cd8466f97f..93afa6746a5 100644
--- a/pkgs/servers/geospatial/pg_tileserv/default.nix
+++ b/pkgs/servers/geospatial/pg_tileserv/default.nix
@@ -1,17 +1,27 @@
-{ lib, fetchFromGitHub, buildGoModule }:
+{ lib, fetchFromGitHub, fetchpatch, buildGoModule }:
 
 buildGoModule rec {
   pname = "pg_tileserv";
-  version = "1.0.9";
+  version = "1.0.10";
 
   src = fetchFromGitHub {
     owner = "CrunchyData";
-    repo = pname;
+    repo = "pg_tileserv";
     rev = "v${version}";
-    sha256 = "sha256-pNm802DJu5t+Y9QZU6wDUcAVpJTZ4SxDK0J61wzuuRE=";
+    hash = "sha256-Y8GAmWpnXQGmFcy44wFUQGpA8OvT7u1rY1ZGNg1Qwgs=";
   };
 
-  vendorSha256 = "sha256-iw9bIh1Ngj5IGhrZwmSPciyaAR73msZ283TB0ibwt+c=";
+  patches = [
+    # Without this, we get error messages like:
+    # 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)
+    # The patch was generated by changing "go 1.15" to "go 1.17" and executing `go mod tidy`.
+    (fetchpatch {
+      url = "https://github.com/CrunchyData/pg_tileserv/commit/d8e01469344895267ead9fa35ee7bdb8f966a710.patch";
+      hash = "sha256-1P3dV8h51X+MEH2u1n6RxZvBPXBpQWrZBBCTOoCEWQU=";
+    })
+  ];
+
+  vendorHash = "sha256-gXJFuvJ2d/e91TAtBzV3p2MwriJtUlIuNRw1+3iXJBA=";
 
   ldflags = [ "-s" "-w" "-X main.programVersion=${version}" ];