Skip to content

Commit

Permalink
pgmq: init at 1.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
takeda committed Oct 7, 2024
1 parent 87f7f98 commit 7985f27
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkgs/servers/sql/postgresql/ext/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,8 @@ self: super: {

pgaudit = super.callPackage ./pgaudit.nix { };

pgmq = super.callPackage ./pgmq.nix { };

pgroonga = super.callPackage ./pgroonga.nix { };

pgsodium = super.callPackage ./pgsodium.nix { };
Expand Down
42 changes: 42 additions & 0 deletions pkgs/servers/sql/postgresql/ext/pgmq.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
lib,
stdenv,
fetchFromGitHub,
postgresql,
}:

stdenv.mkDerivation rec {
pname = "pgmq";
version = "1.4.4";

src = fetchFromGitHub {
owner = "tembo-io";
repo = "pgmq";
rev = "v${version}";
hash = "sha256-z+8/BqIlHwlMnuIzMz6eylmYbSmhtsNt7TJf/CxbdVw=";
};

sourceRoot = "${src.name}/pgmq-extension";

dontConfigure = true;

buildInputs = [ postgresql ];

installPhase = ''
runHook preInstall
install -D -t $out/share/postgresql/extension sql/*.sql
install -D -t $out/share/postgresql/extension *.control
runHook postInstall
'';

meta = {
description = "Lightweight message queue like AWS SQS and RSMQ but on Postgres";
homepage = "https://tembo.io/pgmq";
changelog = "https://github.com/tembo-io/pgmq/releases/tag/v${version}";
maintainers = with lib.maintainers; [ takeda ];
platforms = postgresql.meta.platforms;
license = lib.licenses.postgresql;
};
}

0 comments on commit 7985f27

Please sign in to comment.