pgcat: init at 1.1.0

This commit is contained in:
Cathal Mullan 2023-07-28 13:39:53 +01:00
parent 570f93b3e2
commit 3fe70ce002
No known key found for this signature in database
GPG Key ID: 1A6DDE577192D94D
2 changed files with 52 additions and 0 deletions

View File

@ -0,0 +1,50 @@
{ lib
, stdenv
, fetchFromGitHub
, rustPlatform
, darwin
}:
rustPlatform.buildRustPackage rec {
pname = "pgcat";
version = "1.1.0";
src = fetchFromGitHub {
owner = "postgresml";
repo = "pgcat";
rev = "v${version}";
hash = "sha256-ESHBOh9JSzu6Zxh0z/+nebumi/zyFVdTK0DIwR/46Xo=";
};
cargoHash = "sha256-2wZADXEi8bfNgSQuL7yAmDYd/a0LOssdPFa/kvSSLFU=";
buildInputs = lib.optionals stdenv.isDarwin [
darwin.apple_sdk.frameworks.Security
];
checkFlags = [
# requires network access
"--skip=dns_cache::CachedResolver::lookup_ip"
"--skip=dns_cache::CachedResolver::new"
"--skip=dns_cache::CachedResolver"
"--skip=dns_cache::tests::has_changed"
"--skip=dns_cache::tests::incorrect_address"
"--skip=dns_cache::tests::lookup_ip"
"--skip=dns_cache::tests::new"
"--skip=dns_cache::tests::thread"
"--skip=dns_cache::tests::unknown_host"
];
doInstallCheck = true;
installCheckPhase = ''
$out/bin/pgcat --version | grep "pgcat ${version}"
'';
meta = with lib; {
homepage = "https://github.com/postgresml/pgcat";
description = "PostgreSQL pooler with sharding, load balancing and failover support.";
license = with licenses; [mit];
platforms = platforms.unix;
maintainers = with maintainers; [cathalmullan];
};
}

View File

@ -26802,6 +26802,8 @@ with pkgs;
pgbouncer = callPackage ../servers/sql/pgbouncer { };
pgcat = callPackage ../servers/sql/pgcat {};
pgpool = callPackage ../servers/sql/pgpool { };
tang = callPackage ../servers/tang {