mailcore2: drop (#415362)

This commit is contained in:
Aleksana
2025-06-10 15:08:26 +08:00
committed by GitHub
3 changed files with 1 additions and 99 deletions
@@ -1,95 +0,0 @@
{
stdenv,
lib,
fetchFromGitHub,
cmake,
libetpan,
icu,
cyrus_sasl,
libctemplate,
libuchardet,
pkg-config,
glib,
html-tidy,
libxml2,
libuuid,
openssl,
}:
stdenv.mkDerivation rec {
pname = "mailcore2";
version = "0.6.4";
src = fetchFromGitHub {
owner = "MailCore";
repo = "mailcore2";
rev = version;
sha256 = "0a69q11z194fdfwyazjyyylx57sqs9j4lz7jwh5qcws8syqgb23z";
};
nativeBuildInputs = [
cmake
pkg-config
];
buildInputs =
[
libetpan
cyrus_sasl
libctemplate
libuchardet
html-tidy
libxml2
openssl
]
++ lib.optionals stdenv.hostPlatform.isLinux [
glib
icu
libuuid
];
postPatch =
''
substituteInPlace CMakeLists.txt \
--replace " icule iculx" "" \
--replace "tidy/tidy.h" "tidy.h" \
--replace "/usr/include/tidy" "${html-tidy}/include" \
--replace "/usr/include/libxml2" "${libxml2.dev}/include/libxml2"
substituteInPlace src/core/basetypes/MCHTMLCleaner.cpp \
--replace buffio.h tidybuffio.h
substituteInPlace src/core/basetypes/MCString.cpp \
--replace "xmlErrorPtr" "const xmlError *"
''
+ lib.optionalString (!stdenv.hostPlatform.isDarwin) ''
substituteInPlace src/core/basetypes/MCICUTypes.h \
--replace "__CHAR16_TYPE__ UChar" "char16_t UChar"
'';
cmakeFlags = lib.optionals (!stdenv.hostPlatform.isDarwin) [
"-DBUILD_SHARED_LIBS=ON"
];
installPhase = ''
mkdir $out
cp -r src/include $out
mkdir $out/lib
cp src/libMailCore.* $out/lib
'';
doCheck = !stdenv.hostPlatform.isDarwin;
checkPhase = ''
(
cd unittest
TZ=PST8PDT ./unittestcpp ../../unittest/data
)
'';
meta = with lib; {
description = "Simple and asynchronous API to work with e-mail protocols IMAP, POP and SMTP";
homepage = "http://libmailcore.com";
license = licenses.bsd3;
maintainers = [ ];
platforms = platforms.unix;
};
}
+1
View File
@@ -1177,6 +1177,7 @@ mapAliases {
ma1sd = throw "ma1sd was dropped as it is unmaintained"; # Added 2024-07-10
mac = monkeysAudio; # Added 2024-11-30
MACS2 = macs2; # Added 2023-06-12
mailcore2 = throw "'mailcore2' has been removed due to lack of upstream maintenance."; # Added 2025-06-09
mailctl = throw "mailctl has been renamed to oama"; # Added 2024-08-19
mailman-rss = throw "The mailman-rss package was dropped since it was unmaintained."; # Added 2024-06-21
mariadb_105 = throw "'mariadb_105' has been removed because it reached its End of Life. Consider upgrading to 'mariadb_106'."; # Added 2025-04-26
-4
View File
@@ -16233,10 +16233,6 @@ with pkgs;
openlilylib-fonts = callPackage ../misc/lilypond/fonts.nix { };
mailcore2 = callPackage ../development/libraries/mailcore2 {
icu = icu71;
};
meilisearch_1_11 = callPackage ../by-name/me/meilisearch/package.nix { version = "1.11.3"; };
mongocxx = callPackage ../development/libraries/mongocxx/default.nix { };