31 lines
725 B
Nix
31 lines
725 B
Nix
{
|
|
curl,
|
|
fetchFromGitHub,
|
|
lib,
|
|
postgresql,
|
|
postgresqlBuildExtension,
|
|
}:
|
|
|
|
postgresqlBuildExtension (finalAttrs: {
|
|
pname = "pg_net";
|
|
version = "0.20.2";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "supabase";
|
|
repo = "pg_net";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-8xhk3WPONVjB2JIIRDBJP9fmtlMx0ld2t9GFYIzTYyQ=";
|
|
};
|
|
|
|
buildInputs = [ curl ];
|
|
|
|
meta = {
|
|
description = "Async networking for Postgres";
|
|
homepage = "https://github.com/supabase/pg_net";
|
|
changelog = "https://github.com/supabase/pg_net/releases/tag/v${finalAttrs.version}";
|
|
maintainers = with lib.maintainers; [ thoughtpolice ];
|
|
platforms = postgresql.meta.platforms;
|
|
license = lib.licenses.postgresql;
|
|
};
|
|
})
|