Unverified Commit 85208753 authored by Mario Rodas's avatar Mario Rodas Committed by GitHub
Browse files

Merge pull request #232937 from jz8132543/feat-repmgr

postgresql15Packages.repmgr: 5.3.2 -> 5.4.0
parents 46d38d19 ac0e09e1
Loading
Loading
Loading
Loading
+10 −5
Original line number Diff line number Diff line
{ lib, stdenv, fetchFromGitHub
{ lib
, stdenv
, fetchFromGitHub
, postgresql
, openssl
, zlib
, readline
, flex
, curl
, json_c
}:

stdenv.mkDerivation rec {
  pname = "repmgr";
  version = "5.3.2";
  version = "5.4.0";

  src = fetchFromGitHub {
    owner = "2ndQuadrant";
    owner = "EnterpriseDB";
    repo = "repmgr";
    rev = "v${version}";
    sha256 = "sha256-M8FMin9y6nAiPYeT5pUUy0KyZ1dkuH708GshZ6GoXXw=";
    sha256 = "sha256-QUxLqCZIopvqDncpaA8bxm9MHvO6R6jPrcd8hF8lqQs=";
  };

  nativeBuildInputs = [ flex ];

  buildInputs = [ postgresql openssl zlib readline ];
  buildInputs = [ postgresql openssl zlib readline curl json_c ];

  installPhase = ''
    mkdir -p $out/{bin,lib,share/postgresql/extension}
@@ -38,3 +42,4 @@ stdenv.mkDerivation rec {
    maintainers = with maintainers; [ zimbatm ];
  };
}