|
|
|
@ -1,26 +1,16 @@ |
|
|
|
|
{ lib, stdenv, fetchFromGitHub, fetchpatch, postgresql, openssl, zlib, readline, libkrb5 }: |
|
|
|
|
{ lib, stdenv, fetchFromGitHub, postgresql, openssl, zlib, readline, libkrb5 }: |
|
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec { |
|
|
|
|
pname = "pg_auto_failover"; |
|
|
|
|
version = "1.6.3"; |
|
|
|
|
version = "1.6.4"; |
|
|
|
|
|
|
|
|
|
src = fetchFromGitHub { |
|
|
|
|
owner = "citusdata"; |
|
|
|
|
repo = pname; |
|
|
|
|
rev = "v${version}"; |
|
|
|
|
sha256 = "sha256-hGpcHV4ai9mxaJ/u/o9LNFWPGsW22W7ak2pbvAUgmwU="; |
|
|
|
|
sha256 = "sha256-MzMKVS86ymfRwZqTzJsdophRrIIPDp50Wpt7QkGA6Nc="; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
patches = [ |
|
|
|
|
# Pull upstream fix for ncurses-6.3 support: |
|
|
|
|
# https://github.com/citusdata/pg_auto_failover/pull/830 |
|
|
|
|
(fetchpatch { |
|
|
|
|
name = "ncurses-6.3.patch"; |
|
|
|
|
url = "https://github.com/citusdata/pg_auto_failover/commit/fc92546965437a6d5f82ed9a6bdc8204a3bca725.patch"; |
|
|
|
|
sha256 = "sha256-t4DC/d/2s/Mc44rpFxBMOWGhACG0s5wAWyeDD7Mefo8="; |
|
|
|
|
}) |
|
|
|
|
]; |
|
|
|
|
|
|
|
|
|
buildInputs = [ postgresql openssl zlib readline libkrb5 ]; |
|
|
|
|
|
|
|
|
|
installPhase = '' |
|
|
|
|