summary refs log tree commit diff
path: root/pkgs/applications/networking/mailreaders/alpine/default.nix
blob: 03c2c21aed05565dc6f84415f78cde9c3128718f (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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{stdenv, fetchurl, ncurses, tcl, openssl, pam, pkgconfig, gettext, kerberos
, openldap
}:
let
  s = 
  rec {
    version = "2.00";
    url = "ftp://ftp.cac.washington.edu/alpine/alpine-${version}.tar.bz2";
    sha256 = "19m2w21dqn55rhxbh5lr9qarc2fqa9wmpj204jx7a0zrb90bhpf8";
    baseName = "alpine";
    name = "${baseName}-${version}";
  };
  buildInputs = [
    ncurses tcl openssl pam kerberos openldap
  ];
in
stdenv.mkDerivation {
  inherit (s) name version;
  inherit buildInputs;
  src = fetchurl {
    inherit (s) url sha256;
  };
  configureFlags = [
    "--with-ssl-include-dir=${openssl}/include/openssl"
    "--with-tcl-lib=${tcl.libPrefix}"
    ];
  preConfigure = ''
    export NIX_LDFLAGS="$NIX_LDFLAGS -lgcc_s"
  '';
  meta = {
    inherit (s) version;
    description = ''Console mail reader'';
    license = stdenv.lib.licenses.asl20;
    maintainers = [stdenv.lib.maintainers.raskin];
    platforms = stdenv.lib.platforms.linux;
    homepage = "https://www.washington.edu/alpine/";
  };
}