diff --git a/maintainers/maintainer-list.nix b/maintainers/maintainer-list.nix index 66913c487cf22..d65f6b360ab43 100644 --- a/maintainers/maintainer-list.nix +++ b/maintainers/maintainer-list.nix @@ -17465,6 +17465,12 @@ name = "Maciej Krüger"; keys = [ { fingerprint = "E90C BA34 55B3 6236 740C 038F 0D94 8CE1 9CF4 9C5F"; } ]; }; + mkleczek = { + name = "Michal Kleczek"; + email = "michal@kleczek.org"; + github = "mkleczek"; + githubId = 11559480; + }; mksafavi = { name = "MK Safavi"; email = "mksafavi@gmail.com"; 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 0000000000000..0c1379331b05c --- /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; + }; +})