1{
2 curl,
3 fetchFromGitHub,
4 lib,
5 postgresql,
6 postgresqlBuildExtension,
7}:
8
9postgresqlBuildExtension (finalAttrs: {
10 pname = "pg_net";
11 version = "0.14.0";
12
13 src = fetchFromGitHub {
14 owner = "supabase";
15 repo = "pg_net";
16 tag = "v${finalAttrs.version}";
17 hash = "sha256-c1pxhTyrE5j6dY+M5eKAboQNofIORS+Dccz+7HKEKQI=";
18 };
19
20 buildInputs = [ curl ];
21
22 env.NIX_CFLAGS_COMPILE = "-Wno-error";
23
24 meta = {
25 description = "Async networking for Postgres";
26 homepage = "https://github.com/supabase/pg_net";
27 changelog = "https://github.com/supabase/pg_net/releases/tag/v${finalAttrs.version}";
28 maintainers = with lib.maintainers; [ thoughtpolice ];
29 platforms = postgresql.meta.platforms;
30 license = lib.licenses.postgresql;
31 };
32})