nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 42 lines 995 B view raw
1{ 2 lib, 3 fetchFromGitHub, 4 rustPlatform, 5 nix-update-script, 6 testers, 7 pgcat, 8}: 9 10rustPlatform.buildRustPackage rec { 11 pname = "pgcat"; 12 version = "1.2.0"; 13 14 src = fetchFromGitHub { 15 owner = "postgresml"; 16 repo = "pgcat"; 17 rev = "v${version}"; 18 hash = "sha256-DHXUhAAOmPSt4aVp93I1y69of+MEboXJBZH50mzQTm8="; 19 }; 20 21 cargoHash = "sha256-6x/IPFncfOPxautW7gVUh5LG0hK4h6T4QL7B82Moi6o="; 22 23 checkFlags = [ 24 # requires network access 25 "--skip=dns_cache" 26 ]; 27 28 passthru = { 29 updateScript = nix-update-script { }; 30 tests.version = testers.testVersion { package = pgcat; }; 31 }; 32 33 meta = { 34 homepage = "https://github.com/postgresml/pgcat"; 35 description = "PostgreSQL pooler with sharding, load balancing and failover support"; 36 changelog = "https://github.com/postgresml/pgcat/releases"; 37 license = with lib.licenses; [ mit ]; 38 platforms = lib.platforms.unix; 39 maintainers = with lib.maintainers; [ cathalmullan ]; 40 mainProgram = "pgcat"; 41 }; 42}