From 2ea951480d629e6b329a30c14ea0b92be1ab5039 Mon Sep 17 00:00:00 2001 From: Nejc Zupan Date: Sun, 22 Nov 2020 13:08:47 +0000 Subject: [PATCH] pgweb: init at 0.11.7 Add pgweb, a light and fast web-based PostgreSQL database browser --- maintainers/maintainer-list.nix | 6 +++++ .../tools/database/pgweb/default.nix | 26 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 3 files changed, 34 insertions(+) create mode 100644 pkgs/development/tools/database/pgweb/default.nix diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index f2e33938e05..c686510142c 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -9998,4 +9998,10 @@ github = "pulsation"; githubId = 1838397; }; + zupo = { + name = "Nejc Zupan"; + email = "nejczupan+nix@gmail.com"; + github = "zupo"; + githubId = 311580; + }; } diff --git a/pkgs/development/tools/database/pgweb/default.nix b/pkgs/development/tools/database/pgweb/default.nix new file mode 100644 index 00000000000..de9d0847f8b --- /dev/null +++ b/pkgs/development/tools/database/pgweb/default.nix @@ -0,0 +1,26 @@ +{ buildGoPackage, fetchFromGitHub, lib }: + +buildGoPackage rec { + pname = "pgweb"; + version = "0.11.7"; + + src = fetchFromGitHub { + owner = "sosedoff"; + repo = pname; + rev = "v${version}"; + sha256 = "1df3vixxca80i040apbim80nqni94q882ykn3cglyccyl0iz59ix"; + }; + + goPackagePath = "github.com/sosedoff/pgweb"; + + 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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 2b0603007c4..e44b2561559 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -13051,6 +13051,8 @@ in pgpkeyserver-lite = callPackage ../servers/web-apps/pgpkeyserver-lite {}; + pgweb = callPackage ../development/tools/database/pgweb { }; + gpgstats = callPackage ../tools/security/gpgstats { }; gpshell = callPackage ../development/tools/misc/gpshell { };