2022-02-12 04:20:00 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, cmake, openssl, postgresql }:
|
2019-03-12 21:20:00 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "odyssey";
|
2022-02-12 04:20:00 +00:00
|
|
|
version = "1.2";
|
2019-03-12 21:20:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "yandex";
|
|
|
|
repo = pname;
|
2019-06-15 03:50:44 +01:00
|
|
|
rev = version;
|
2022-02-12 04:20:00 +00:00
|
|
|
sha256 = "sha256-wxENqB9CmRVsQY9jTPUlpdiXpuqoU/2hRCY41f9uH3A=";
|
2019-03-12 21:20:00 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake ];
|
2022-02-12 04:20:00 +00:00
|
|
|
buildInputs = [ openssl postgresql ];
|
|
|
|
cmakeFlags = [ "-DPQ_LIBRARY=${postgresql.lib}/lib" ];
|
2019-03-12 21:20:00 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
install -Dm755 -t $out/bin sources/odyssey
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-03-12 21:20:00 +00:00
|
|
|
description = "Scalable PostgreSQL connection pooler";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/yandex/odyssey";
|
2019-03-12 21:20:00 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
platforms = [ "x86_64-linux" ];
|
|
|
|
};
|
|
|
|
}
|