1 { stdenv, lib, fetchFromGitHub, fetchpatch, openssl }:
4 eMailSrc = fetchFromGitHub {
7 rev = "7d23c8f508a52bd8809e2af4290417829b6bb5ae";
8 sha256 = "1cxxzhm36civ6vjdgrk7mfmlzkih44kdii6l2xgy4r434s8rzcpn";
11 srcRoot = eMailSrc.name;
13 dlibSrc = fetchFromGitHub {
16 rev = "f62f29e918748b7cea476220f7492672be81c9de";
17 sha256 = "0h34cikch98sb7nsqjnb9wl384c8ndln3m6yb1172l4y89qjg9rr";
24 version = "unstable-2016-01-31";
28 # Pul patch pending upstream inclusion for -fno-common toolchain support:
29 # https://github.com/deanproxy/eMail/pull/61
31 name = "fno-common.patch";
32 url = "https://github.com/deanproxy/eMail/commit/c3c1e52132832be0e51daa6e0037d5bb79a17751.patch";
33 sha256 = "17ndrb65g0v4y521333h4244419s8nncm0yx2jwv12sf0dl6gy8i";
37 buildInputs = [ openssl ];
41 cp -Rp ${dlibSrc}/* ${srcRoot}/dlib;
42 chmod -R +w ${srcRoot}/dlib;
46 description = "Command line SMTP client";
47 license = with lib.licenses; [ gpl2 ];
48 homepage = "https://deanproxy.com/code";
49 platforms = lib.platforms.unix;