depot/third_party/nixpkgs/pkgs/tools/misc/odyssey/default.nix
Default email 792b51d22f Project import generated by Copybara.
GitOrigin-RevId: d5f237872975e6fb6f76eef1368b5634ffcd266f
2022-02-20 05:27:41 +00:00

29 lines
740 B
Nix

{ 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" ];
};
}