summary refs log tree commit diff
path: root/pkgs/applications/networking/mailreaders/realpine/default.nix
blob: 1ee42531465015a0cf12f904857e0460a6cf79e1 (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
39
40
{stdenv, fetchurl, ncurses, tcl, openssl, pam, pkgconfig, gettext, kerberos
, openldap
}:
let
  baseName = "re-alpine";
  version = "2.03";
in
stdenv.mkDerivation {
  name = "${baseName}-${version}";
  inherit version;

  src = fetchurl {
    url = "mirror://sourceforge/re-alpine/re-alpine-${version}.tar.bz2";
    sha256 = "11xspzbk9cwmklmcw6rxsan7j71ysd4m9c7qldlc59ck595k5nbh";
  };

  buildInputs = [
    ncurses tcl openssl pam kerberos openldap
  ];

  hardening_format = false;

  configureFlags = [
    "--with-ssl-include-dir=${openssl}/include/openssl"
    "--with-tcl-lib=${tcl.libPrefix}"
  ];

  preConfigure = ''
    export NIX_LDFLAGS="$NIX_LDFLAGS -lgcc_s"
  '';

  meta = {
    description = "Console mail reader";
    license = stdenv.lib.licenses.asl20;
    maintainers = [stdenv.lib.maintainers.raskin];
    platforms = stdenv.lib.platforms.linux;
    homepage = "http://re-alpine.sf.net/";
    downloadPage = "http://sourceforge.net/projects/re-alpine/files/";
  };
}