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