Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
56 lines
1.3 KiB
Nix
56 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
libpq,
|
|
openssl,
|
|
nixosTests,
|
|
}:
|
|
stdenv.mkDerivation {
|
|
pname = "pgmanage";
|
|
# 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";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pgManage";
|
|
repo = "pgManage";
|
|
rev = "a028604416be382d6d310bc68b4e7c3cd16020fb";
|
|
sha256 = "sha256-ibCzZrqfbio1wBVFKB6S/wdRxnCc7s3IQdtI9txxhaM=";
|
|
};
|
|
|
|
patchPhase = ''
|
|
patchShebangs src/configure
|
|
'';
|
|
|
|
configurePhase = ''
|
|
./configure --prefix $out
|
|
'';
|
|
|
|
buildInputs = [
|
|
libpq
|
|
openssl
|
|
];
|
|
|
|
nativeBuildInputs = [
|
|
libpq.pg_config
|
|
];
|
|
|
|
passthru.tests.sign-in = nixosTests.pgmanage;
|
|
|
|
meta = with lib; {
|
|
description = "Fast replacement for PGAdmin";
|
|
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 ];
|
|
mainProgram = "pgmanage";
|
|
};
|
|
}
|