.github/labeler-no-sync: fix backport labelling (#378567)
[NixPkgs.git] / pkgs / applications / networking / mailreaders / notmuch / mutt.nix
blob370dc7ebf8fe27880a739bbd4b17ea8ce7c3279a
2   stdenv,
3   lib,
4   perl,
5   perlPackages,
6   makeWrapper,
7   coreutils,
8   notmuch,
9 }:
11 stdenv.mkDerivation rec {
12   pname = "notmuch-mutt";
13   version = notmuch.version;
15   outputs = [ "out" ];
17   dontStrip = true;
19   nativeBuildInputs = [ makeWrapper ];
20   buildInputs =
21     [
22       perl
23     ]
24     ++ (with perlPackages; [
25       FileRemove
26       DigestSHA1
27       Later
28       MailBox
29       MailMaildir
30       MailTools
31       StringShellQuote
32       TermReadLineGnu
33     ]);
35   src = notmuch.src;
37   dontConfigure = true;
38   dontBuild = true;
40   installPhase = ''
41     ${coreutils}/bin/install -Dm755 \
42       ./contrib/notmuch-mutt/notmuch-mutt \
43       $out/bin/notmuch-mutt
45     wrapProgram $out/bin/notmuch-mutt \
46       --prefix PERL5LIB : $PERL5LIB
47   '';
49   meta = with lib; {
50     description = "Mutt support for notmuch";
51     mainProgram = "notmuch-mutt";
52     homepage = "https://notmuchmail.org/";
53     license = with licenses; gpl3;
54     maintainers = with maintainers; [ peterhoeg ];
55     platforms = platforms.unix;
56   };