forked from mirrors/nixpkgs
postgresqlPackages.repmgr: 4.4.0 -> 5.0.0
This commit is contained in:
parent
6c8fad056b
commit
3951e718b8
|
@ -1,26 +1,35 @@
|
|||
{ stdenv, fetchFromGitHub, postgresql, openssl, zlib, readline }:
|
||||
{ stdenv, fetchFromGitHub
|
||||
, postgresql
|
||||
, openssl
|
||||
, zlib
|
||||
, readline
|
||||
, flex
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "repmgr";
|
||||
version = "4.4.0";
|
||||
version = "5.0.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "2ndQuadrant";
|
||||
repo = "repmgr";
|
||||
rev = "v${version}";
|
||||
sha256 = "185789f7igvlqyqcb8kf42jjq8g0wbs2aqd9kimrq5kf4srwgpim";
|
||||
hash = "sha256-1CshcutjgwWCRxBfjlNGDLKMT5BYqb+sh4i+/E/YN38=";
|
||||
};
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/{lib,share/postgresql/extension}
|
||||
|
||||
cp *.so $out/lib
|
||||
cp *.sql $out/share/postgresql/extension
|
||||
cp *.control $out/share/postgresql/extension
|
||||
'';
|
||||
nativeBuildInputs = [ flex ];
|
||||
|
||||
buildInputs = [ postgresql openssl zlib readline ];
|
||||
|
||||
installPhase = ''
|
||||
mkdir -p $out/{bin,lib,share/postgresql/extension}
|
||||
|
||||
cp repmgr{,d} $out/bin
|
||||
cp *.so $out/lib
|
||||
cp *.sql $out/share/postgresql/extension
|
||||
cp *.control $out/share/postgresql/extension
|
||||
'';
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = "https://repmgr.org/";
|
||||
description = "Replication manager for PostgreSQL cluster";
|
||||
|
|
Loading…
Reference in a new issue