{ stdenv, fetchFromGitHub, autoconf, automake, pkg-config, dovecot, libtool, xapian, icu64 }: stdenv.mkDerivation { pname = "fts-xapian"; version = "1.2.7"; src = fetchFromGitHub { owner = "grosjo"; repo = "fts-xapian"; rev = "f433203e37c84154ca2da6fad435c32242caa98a"; sha256 = "0w40icjfvd4pbip16492kf75f83rnjhh6axyh4fmzmsjpzhqgybd"; }; buildInputs = [ dovecot autoconf automake libtool pkg-config xapian icu64 ]; preConfigure = '' export PANDOC=false autoreconf -vi ''; configureFlags = [ "--with-dovecot=${dovecot}/lib/dovecot" "--without-dovecot-install-dirs" "--with-moduledir=$(out)/lib/dovecot" ]; meta = with stdenv.lib; { homepage = https://github.com/grosjo/fts-xapian; description = "Dovecot FTS plugin based on Xapian"; license = licenses.lgpl21; maintainers = with maintainers; [ ]; platforms = platforms.unix; }; }