2022-06-16 17:23:12 +00:00
|
|
|
{ buildGoModule, fetchFromGitHub, lib }:
|
2020-11-24 20:58:05 +00:00
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
buildGoModule rec {
|
2020-11-24 20:58:05 +00:00
|
|
|
pname = "pgweb";
|
2022-06-16 17:23:12 +00:00
|
|
|
version = "0.11.11";
|
2020-11-24 20:58:05 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sosedoff";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-06-16 17:23:12 +00:00
|
|
|
sha256 = "sha256-oKUmBrGxExppJ5y4fZOmMOT5XDMsyMvtE9czotdlMPM=";
|
2020-11-24 20:58:05 +00:00
|
|
|
};
|
|
|
|
|
2022-06-16 17:23:12 +00:00
|
|
|
postPatch = ''
|
|
|
|
# Disable tests require network access.
|
|
|
|
rm -f pkg/client/{client,dump}_test.go
|
|
|
|
'';
|
|
|
|
|
|
|
|
vendorSha256 = "sha256-Svy0aZKOGL0vrT058szlpS5t7NvzcyRCHRksdmdkckI=";
|
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" ];
|
2020-11-24 20:58:05 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A web-based database browser for PostgreSQL";
|
|
|
|
longDescription = ''
|
|
|
|
A simple postgres browser that runs as a web server. You can view data,
|
|
|
|
run queries and examine tables and indexes.
|
|
|
|
'';
|
|
|
|
homepage = "https://sosedoff.github.io/pgweb/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ zupo ];
|
|
|
|
};
|
|
|
|
}
|