dovecot-fts-flatcurve: init at 1.0.5 (#376445)

This commit is contained in:
Martin Weinelt
2025-01-27 01:26:30 +01:00
committed by GitHub
2 changed files with 46 additions and 0 deletions
@@ -0,0 +1,43 @@
{
lib,
stdenv,
fetchFromGitHub,
autoreconfHook,
pkg-config,
dovecot,
xapian,
}:
stdenv.mkDerivation rec {
pname = "dovecot-fts-flatcurve";
version = "1.0.5";
src = fetchFromGitHub {
owner = "slusarz";
repo = "dovecot-fts-flatcurve";
rev = "refs/tags/v${version}";
hash = "sha256-96sR/pl0G0sSjh/YrXdgVgASJPhrL32xHCbBGrDxzoU=";
};
buildInputs = [
xapian
];
nativeBuildInputs = [
autoreconfHook
pkg-config
];
configureFlags = [
"--with-dovecot=${dovecot}/lib/dovecot"
"--with-moduledir=$(out)/lib/dovecot"
];
meta = with lib; {
homepage = "https://slusarz.github.io/dovecot-fts-flatcurve/";
description = "Dovecot FTS Flatcurve plugin (Xapian)";
license = licenses.lgpl21Only;
maintainers = with maintainers; [ euxane ];
platforms = platforms.unix;
};
}
+3
View File
@@ -15,6 +15,7 @@
coreutils,
clucene_core_2,
icu,
libexttextcat,
openldap,
libsodium,
libstemmer,
@@ -48,6 +49,7 @@ stdenv.mkDerivation rec {
lz4
clucene_core_2
icu
libexttextcat
openldap
libsodium
libstemmer
@@ -131,6 +133,7 @@ stdenv.mkDerivation rec {
"--with-ldap"
"--with-lucene"
"--with-icu"
"--with-textcat"
]
++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
"i_cv_epoll_works=${if stdenv.hostPlatform.isLinux then "yes" else "no"}"