mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-09 05:33:25 +00:00
4f0dadbf38
After final improvements to the official formatter implementation, this commit now performs the first treewide reformat of Nix files using it. This is part of the implementation of RFC 166. Only "inactive" files are reformatted, meaning only files that aren't being touched by any PR with activity in the past 2 months. This is to avoid conflicts for PRs that might soon be merged. Later we can do a full treewide reformat to get the rest, which should not cause as many conflicts. A CI check has already been running for some time to ensure that new and already-formatted files are formatted, so the files being reformatted here should also stay formatted. This commit was automatically created and can be verified using nix-builda08b3a4d19
.tar.gz \ --argstr baseRevb32a094368
result/bin/apply-formatting $NIXPKGS_PATH
52 lines
1.3 KiB
Nix
52 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
postgresql,
|
|
openssl,
|
|
nixosTests,
|
|
}:
|
|
stdenv.mkDerivation rec {
|
|
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 = [
|
|
postgresql
|
|
openssl
|
|
];
|
|
|
|
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";
|
|
};
|
|
}
|