blob: f154cffa9c6b73fc57e03ac0b9d6187a511d093f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
{ lib, stdenv, fetchFromGitHub, cmake, openssl, postgresql }:
stdenv.mkDerivation rec {
pname = "odyssey";
version = "1.2";
src = fetchFromGitHub {
owner = "yandex";
repo = pname;
rev = version;
sha256 = "sha256-wxENqB9CmRVsQY9jTPUlpdiXpuqoU/2hRCY41f9uH3A=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ openssl postgresql ];
cmakeFlags = [ "-DPQ_LIBRARY=${postgresql.lib}/lib" ];
installPhase = ''
install -Dm755 -t $out/bin sources/odyssey
'';
meta = with lib; {
description = "Scalable PostgreSQL connection pooler";
homepage = "https://github.com/yandex/odyssey";
license = licenses.bsd3;
maintainers = [ maintainers.marsam ];
platforms = [ "x86_64-linux" ];
};
}
|