From bdb03bc365e64fa077c4204f2eb9933044f2dc8c Mon Sep 17 00:00:00 2001 From: Rvfg Date: Fri, 4 Nov 2022 11:18:44 +0800 Subject: [PATCH] etebase-server: add option withPostgres --- pkgs/servers/etebase/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/servers/etebase/default.nix b/pkgs/servers/etebase/default.nix index 1aab4a4591db..e84a3b45ce94 100644 --- a/pkgs/servers/etebase/default.nix +++ b/pkgs/servers/etebase/default.nix @@ -1,6 +1,7 @@ { lib, fetchFromGitHub, buildPythonPackage, aiofiles, django_3 , fastapi, msgpack, pynacl, redis, typing-extensions -, withLdap ? true, python-ldap }: +, withLdap ? true, python-ldap +, withPostgres ? true, psycopg2 }: buildPythonPackage rec { pname = "etebase-server"; @@ -24,7 +25,8 @@ buildPythonPackage rec { pynacl redis typing-extensions - ] ++ lib.optional withLdap python-ldap; + ] ++ lib.optional withLdap python-ldap + ++ lib.optional withPostgres psycopg2; installPhase = '' mkdir -p $out/bin $out/lib