1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-18 19:51:17 +00:00

sogo: add optional (off by default) EAS/ActiveSync support

This commit is contained in:
ajs124 2022-07-18 15:28:05 +02:00
parent 18a5275c3d
commit 7bd91bca24
2 changed files with 30 additions and 2 deletions

View file

@ -1,6 +1,8 @@
{ gnustep, lib, fetchFromGitHub, fetchpatch, makeWrapper, python3, lndir
, openssl, openldap, sope, libmemcached, curl, libsodium, libytnef, libzip, pkg-config, nixosTests
, oath-toolkit }:
, oath-toolkit
, enableActiveSync ? false
, libwbxml }:
gnustep.stdenv.mkDerivation rec {
pname = "SOGo";
version = "5.7.0";
@ -13,7 +15,10 @@ gnustep.stdenv.mkDerivation rec {
};
nativeBuildInputs = [ gnustep.make makeWrapper python3 ];
buildInputs = [ gnustep.base sope openssl libmemcached curl libsodium libytnef libzip pkg-config openldap oath-toolkit ];
buildInputs = [ gnustep.base sope openssl libmemcached curl libsodium libytnef libzip pkg-config openldap oath-toolkit ]
++ lib.optional enableActiveSync libwbxml;
patches = lib.optional enableActiveSync ./enable-activesync.patch;
postPatch = ''
# Exclude NIX_ variables
@ -60,6 +65,8 @@ gnustep.stdenv.mkDerivation rec {
for bin in $out/bin/*; do
wrapProgram $bin --prefix LD_LIBRARY_PATH : $out/lib/sogo --prefix GNUSTEP_CONFIG_FILE : $out/share/GNUstep/GNUstep.conf
done
rmdir $out/nix
'';
passthru.tests.sogo = nixosTests.sogo;

View file

@ -0,0 +1,21 @@
--- a/ActiveSync/NSData+ActiveSync.m
+++ b/ActiveSync/NSData+ActiveSync.m
@@ -36,7 +36,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#import <NGExtensions/NGBase64Coding.h>
#import <NGExtensions/NSObject+Logs.h>
-#include <wbxml/wbxml.h>
+#include <libwbxml-1.0/wbxml/wbxml.h>
#define WBXMLDEBUG 0
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -11,6 +11,7 @@ SUBPROJECTS = \
UI \
Tools \
Tests/Unit \
+ ActiveSync \
include $(GNUSTEP_MAKEFILES)/aggregate.make