Commit 31c19243 authored by euxane's avatar euxane Committed by Martin Weinelt
Browse files

dovecot-fts-flatcurve: init at 1.0.5

Note: this plugin will be integrated into Dovecot/core in 2.4.
In the meantime, it has to be used as a separate plugin for 2.3.
parent 5fbffc2e
Loading
Loading
Loading
Loading
+43 −0
Original line number Diff line number Diff line
{
  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;
  };
}