1 { stdenv, lib, fetchFromGitHub, cmake, libetpan, icu, cyrus_sasl, libctemplate
2 , libuchardet, pkg-config, glib, html-tidy, libxml2, libuuid, openssl
5 stdenv.mkDerivation rec {
10 src = fetchFromGitHub {
14 sha256 = "0a69q11z194fdfwyazjyyylx57sqs9j4lz7jwh5qcws8syqgb23z";
17 nativeBuildInputs = [ cmake pkg-config ];
19 libetpan icu cyrus_sasl libctemplate libuchardet glib
20 html-tidy libxml2 libuuid openssl
24 substituteInPlace CMakeLists.txt \
25 --replace " icule iculx" "" \
26 --replace "tidy/tidy.h" "tidy.h" \
27 --replace "/usr/include/tidy" "${html-tidy}/include" \
28 --replace "/usr/include/libxml2" "${libxml2.dev}/include/libxml2"
29 substituteInPlace src/core/basetypes/MCHTMLCleaner.cpp \
30 --replace buffio.h tidybuffio.h
34 "-DBUILD_SHARED_LIBS=ON"
39 cp -r src/include $out
42 cp src/libMailCore.so $out/lib
49 TZ=PST8PDT ./unittestcpp ../../unittest/data
54 description = "A simple and asynchronous API to work with e-mail protocols IMAP, POP and SMTP";
55 homepage = "http://libmailcore.com";
56 license = licenses.bsd3;
57 maintainers = with maintainers; [ cstrahan ];