From 8f7d8afb822f685eba31bb55f89111daef038716 Mon Sep 17 00:00:00 2001 From: ajs124 Date: Mon, 6 Dec 2021 23:19:07 +0000 Subject: [PATCH] sogo: enable multi-factor authentication --- pkgs/servers/web-apps/sogo/default.nix | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pkgs/servers/web-apps/sogo/default.nix b/pkgs/servers/web-apps/sogo/default.nix index e4dd796317a8..3da6cf4f1236 100644 --- a/pkgs/servers/web-apps/sogo/default.nix +++ b/pkgs/servers/web-apps/sogo/default.nix @@ -1,5 +1,6 @@ { gnustep, lib, fetchFromGitHub, fetchpatch, makeWrapper, python3, lndir -, openssl, openldap, sope, libmemcached, curl, libsodium, libytnef, libzip, pkg-config, nixosTests }: +, openssl, openldap, sope, libmemcached, curl, libsodium, libytnef, libzip, pkg-config, nixosTests +, oathToolkit }: gnustep.stdenv.mkDerivation rec { pname = "SOGo"; version = "5.3.0"; @@ -12,8 +13,7 @@ gnustep.stdenv.mkDerivation rec { }; nativeBuildInputs = [ gnustep.make makeWrapper python3 ]; - buildInputs = [ gnustep.base sope openssl libmemcached curl libsodium libytnef libzip pkg-config ] - ++ lib.optional (openldap != null) openldap; + buildInputs = [ gnustep.base sope openssl libmemcached curl libsodium libytnef libzip pkg-config openldap oathToolkit ]; patches = [ # TODO: take a closer look at other patches in https://sources.debian.org/patches/sogo/ and https://github.com/Skrupellos/sogo-patches @@ -41,7 +41,11 @@ gnustep.stdenv.mkDerivation rec { find . -type f -name GNUmakefile -exec sed -i "s:\\$.GNUSTEP_MAKEFILES.:$PWD/makefiles:g" {} + ''; - configureFlags = [ "--disable-debug" "--with-ssl=ssl" ]; + configureFlags = [ + "--disable-debug" + "--with-ssl=ssl" + "--enable-mfa" + ]; preFixup = '' # Create gnustep.conf