diff --git a/pkgs/servers/sql/postgresql/ext/pg_background.nix b/pkgs/servers/sql/postgresql/ext/pg_background.nix new file mode 100644 index 000000000000..0c1379331b05 --- /dev/null +++ b/pkgs/servers/sql/postgresql/ext/pg_background.nix @@ -0,0 +1,30 @@ +{ + fetchFromGitHub, + lib, + postgresql, + postgresqlBuildExtension, + openssl, +}: + +postgresqlBuildExtension (finalAttrs: { + pname = "pg_background"; + version = "1.5"; + + src = fetchFromGitHub { + owner = "vibhorkum"; + repo = "pg_background"; + tag = "v${finalAttrs.version}"; + hash = "sha256-9fW5wHdo9r5fLwU8zN2EEVSWxa+7q2qMjPpMo6iCavg="; + }; + + buildInputs = postgresql.buildInputs; + + meta = { + description = "Run PostgreSQL Commands in Background Workers"; + homepage = "https://github.com/vibhorkum/pg_background"; + changelog = "https://github.com/vibhorkum/pg_background/releases/tag/v${finalAttrs.version}"; + maintainers = with lib.maintainers; [ mkleczek ]; + platforms = postgresql.meta.platforms; + license = lib.licenses.gpl3Only; + }; +})