about summary refs log tree commit diff
path: root/pkgs/applications/networking/mailreaders/mutt/default.nix
blob: 6b10cfc04a291c551ce788d5422751c8b69c30c9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ stdenv, fetchurl, ncurses, which
, sslSupport ? true
, imapSupport ? true
, openssl ? null
}:

assert sslSupport -> openssl != null;

stdenv.mkDerivation {
  name = "mutt-1.5.15";
  src = fetchurl {
    url = ftp://ftp.mutt.org/mutt/devel/mutt-1.5.15.tar.gz;
    sha256 = "03fa1f45d4743cd395b634d19aebbc2c1918cf6b683e0af51076ccc79f643a9a";
  };
  buildInputs = [
    ncurses which
    (if sslSupport then openssl else null)
  ];
  configureFlags = [
    "--with-mailpath="
    (if sslSupport then "--with-ssl" else "--without-ssl")
    (if imapSupport then "--enable-imap" else "--disable-imap")
  ];
}