From f280a5db2b56daeea61e689e48259ca6ca66a365 Mon Sep 17 00:00:00 2001 From: Aaron Jheng Date: Sun, 29 May 2022 00:33:40 +0000 Subject: [PATCH] pgweb: 0.11.7 -> 0.11.11 --- .../tools/database/pgweb/default.nix | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/pkgs/development/tools/database/pgweb/default.nix b/pkgs/development/tools/database/pgweb/default.nix index de9d0847f8b6..8ede5bd834da 100644 --- a/pkgs/development/tools/database/pgweb/default.nix +++ b/pkgs/development/tools/database/pgweb/default.nix @@ -1,17 +1,24 @@ -{ buildGoPackage, fetchFromGitHub, lib }: +{ buildGoModule, fetchFromGitHub, lib }: -buildGoPackage rec { +buildGoModule rec { pname = "pgweb"; - version = "0.11.7"; + version = "0.11.11"; src = fetchFromGitHub { owner = "sosedoff"; repo = pname; rev = "v${version}"; - sha256 = "1df3vixxca80i040apbim80nqni94q882ykn3cglyccyl0iz59ix"; + sha256 = "sha256-oKUmBrGxExppJ5y4fZOmMOT5XDMsyMvtE9czotdlMPM="; }; - goPackagePath = "github.com/sosedoff/pgweb"; + postPatch = '' + # Disable tests require network access. + rm -f pkg/client/{client,dump}_test.go + ''; + + vendorSha256 = "sha256-Svy0aZKOGL0vrT058szlpS5t7NvzcyRCHRksdmdkckI="; + + ldflags = [ "-s" "-w" ]; meta = with lib; { description = "A web-based database browser for PostgreSQL";