btrbk: add mainProgram (#356350)
[NixPkgs.git] / pkgs / by-name / do / dovecot_fts_xapian / package.nix
blob78bb5b1e1cc4e5a7e9b72888ff9381104588d527
1 { lib, stdenv, fetchFromGitHub, autoreconfHook, sqlite, pkg-config, dovecot, xapian, icu }:
3 stdenv.mkDerivation rec {
4   pname = "dovecot-fts-xapian";
5   version = "1.7.14";
7   src = fetchFromGitHub {
8     owner = "grosjo";
9     repo = "fts-xapian";
10     rev = version;
11     hash = "sha256-cLOkXA4kQ15M5TheXy9qZq2je05iY9jwf3tHw20l1Pw=";
12   };
14   buildInputs = [ xapian icu sqlite ];
16   nativeBuildInputs = [ autoreconfHook pkg-config ];
18   preConfigure = ''
19     export PANDOC=false
20   '';
22   configureFlags = [
23     "--with-dovecot=${dovecot}/lib/dovecot"
24     "--with-moduledir=$(out)/lib/dovecot"
25   ];
27   meta = with lib; {
28     homepage = "https://github.com/grosjo/fts-xapian";
29     description = "Dovecot FTS plugin based on Xapian";
30     changelog = "https://github.com/grosjo/fts-xapian/releases";
31     license = licenses.lgpl21Only;
32     maintainers = with maintainers; [ julm symphorien ];
33     platforms = platforms.unix;
34     broken = stdenv.hostPlatform.isDarwin; # never built on Hydra https://hydra.nixos.org/job/nixpkgs/trunk/dovecot_fts_xapian.x86_64-darwin
35   };