blob: 8c8c0241204947754070390432465d417b77f941 (
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, pam, openssl}:
stdenv.mkDerivation {
name = "uw-imap-2007";
src = fetchurl {
url = "ftp://ftp.cac.washington.edu/imap/imap-2007f.tar.gz";
sha256 = "0a2a00hbakh0640r2wdpnwr8789z59wnk7rfsihh3j0vbhmmmqak";
};
makeFlags = "lnp"; # Linux with PAM modules
buildInputs = [ pam openssl ];
patchPhase = ''
sed -i -e s,/usr/local/ssl,${openssl}, \
src/osdep/unix/Makefile
'';
installPhase = ''
mkdir -p $out/bin $out/lib $out/include
cp c-client/*.h c-client/linkage.c $out/include
cp c-client/c-client.a $out/lib/libc-client.a
cp mailutil/mailutil imapd/imapd dmail/dmail mlock/mlock mtest/mtest tmail/tmail \
tools/{an,ua} $out/bin
'';
meta = {
homepage = http://www.washington.edu/imap/;
description = "UW IMAP toolkit - IMAP-supporting software developed by the UW";
license = "Apache2";
platforms = with stdenv.lib.platforms; linux;
};
passthru = {
withSSL = true;
};
}
|