at 23.05-pre 46 lines 991 B view raw
1{ lib 2, stdenv 3, fetchurl 4, postgresql 5, openssl 6, libxcrypt 7, withPam ? stdenv.isLinux 8, pam 9}: 10 11stdenv.mkDerivation rec { 12 pname = "pgpool-II"; 13 version = "4.3.3"; 14 15 src = fetchurl { 16 url = "https://www.pgpool.net/mediawiki/download.php?f=pgpool-II-${version}.tar.gz"; 17 name = "pgpool-II-${version}.tar.gz"; 18 sha256 = "sha256-bHNDS67lgThqlVX+WWKL9GeCD31b2+M0F2g5mgOCyXk="; 19 }; 20 21 buildInputs = [ 22 postgresql 23 openssl 24 libxcrypt 25 ] ++ lib.optional withPam pam; 26 27 configureFlags = [ 28 "--sysconfdir=/etc" 29 "--localstatedir=/var" 30 "--with-openssl" 31 ] ++ lib.optional withPam "--with-pam"; 32 33 installFlags = [ 34 "sysconfdir=\${out}/etc" 35 ]; 36 37 enableParallelBuilding = true; 38 39 meta = with lib; { 40 homepage = "http://pgpool.net/mediawiki/index.php"; 41 description = "A middleware that works between postgresql servers and postgresql clients"; 42 license = licenses.free; 43 platforms = platforms.unix; 44 maintainers = with maintainers; [ ]; 45 }; 46}