Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dovecot plugin for Full Text Search (FTS) with Xapian #78780

Merged
merged 2 commits into from Jun 16, 2020

Conversation

ju1m
Copy link
Contributor

@ju1m ju1m commented Jan 29, 2020

Motivation for this change

Run server-side Xapian-powered Full Text Search (FTS) through IMAP into mails managed by Dovecot2.

Things done

Add fts-xapian plugin, loadable with services.dovecot2.modules = [ pkgs.dovecot_fts_xapian ];
Pandoc support is disabled.

  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@ju1m ju1m changed the title Dovecot fts xapian Dovecot plugin for Full Text Search (FTS) with Xapian Jan 29, 2020
@symphorien
Copy link
Member

I tested it and it works :)

];

meta = with stdenv.lib; {
homepage = https://github.com/grosjo/fts-xapian;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

{ stdenv, fetchFromGitHub, autoconf, automake, pkg-config, dovecot, libtool, xapian, icu64 }:
stdenv.mkDerivation {
pname = "fts-xapian";
version = "1.2.11a";
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

1.3.1 got out today, even.

sha256 = "1n9bvv2rgnmmpm472y067yfzwah39ig1ziwyk5gmrbg0k54x81dk";
};

buildInputs = [ dovecot autoconf automake libtool pkg-config xapian icu64 ];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

autoconf, automake, libtool and pkg-config should be nativeBuildInputs

@ju1m
Copy link
Contributor Author

ju1m commented May 9, 2020

Thanks @symphorien and @mweinelt. I've amended the commit to include your corrections. I've also added sqlite as a dependency because it is now required by upstream.

homepage = "https://github.com/grosjo/fts-xapian";
description = "Dovecot FTS plugin based on Xapian";
license = licenses.lgpl21;
maintainers = with maintainers; [ ];
Copy link
Member

@mweinelt mweinelt May 9, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please consider adding yourself as maintainer.

@mweinelt
Copy link
Member

mweinelt commented May 9, 2020

Result of nixpkgs-review pr 78780 1

1 package built:
- dovecot_fts_xapian

@Ekleog
Copy link
Member

Ekleog commented Jun 16, 2020

Thank you! :)

@Ekleog Ekleog merged commit b0a2d1c into NixOS:master Jun 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants