2023-07-15 17:15:38 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, postgresql, openssl, nixosTests } :
|
2020-04-24 23:36:52 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "pgmanage";
|
2023-07-15 17:15:38 +00:00
|
|
|
# The last release 11.0.1 from 2018 fails the NixOS test
|
|
|
|
# probably because of PostgreSQL-12 incompatibility.
|
|
|
|
# Fortunately the latest master does succeed the test.
|
|
|
|
version = "unstable-2022-05-11";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "pgManage";
|
|
|
|
repo = "pgManage";
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = "a028604416be382d6d310bc68b4e7c3cd16020fb";
|
|
|
|
sha256 = "sha256-ibCzZrqfbio1wBVFKB6S/wdRxnCc7s3IQdtI9txxhaM=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patchPhase = ''
|
|
|
|
patchShebangs src/configure
|
|
|
|
'';
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
./configure --prefix $out
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ postgresql openssl ];
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
passthru.tests.sign-in = nixosTests.pgmanage;
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Fast replacement for PGAdmin";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
|
|
|
At the heart of pgManage is a modern, fast, event-based C-binary, built in
|
|
|
|
the style of NGINX and Node.js. This heart makes pgManage as fast as any
|
|
|
|
PostgreSQL interface can hope to be. (Note: pgManage replaces Postage,
|
|
|
|
which is no longer maintained.)
|
|
|
|
'';
|
|
|
|
homepage = "https://github.com/pgManage/pgManage";
|
|
|
|
license = licenses.postgresql;
|
|
|
|
maintainers = [ maintainers.basvandijk ];
|
2024-02-29 20:09:43 +00:00
|
|
|
mainProgram = "pgmanage";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|