2022-05-21 08:47:17 +00:00
|
|
|
{ stdenv, lib, fetchFromGitHub, fetchpatch, openssl }:
|
2016-01-04 03:30:07 +00:00
|
|
|
|
|
|
|
let
|
|
|
|
eMailSrc = fetchFromGitHub {
|
2016-08-09 02:58:13 +00:00
|
|
|
owner = "deanproxy";
|
2016-01-04 03:30:07 +00:00
|
|
|
repo = "eMail";
|
2016-08-09 02:58:13 +00:00
|
|
|
rev = "7d23c8f508a52bd8809e2af4290417829b6bb5ae";
|
|
|
|
sha256 = "1cxxzhm36civ6vjdgrk7mfmlzkih44kdii6l2xgy4r434s8rzcpn";
|
2016-01-04 03:30:07 +00:00
|
|
|
};
|
|
|
|
|
2017-06-26 18:10:37 +00:00
|
|
|
srcRoot = eMailSrc.name;
|
2016-01-04 03:30:07 +00:00
|
|
|
|
|
|
|
dlibSrc = fetchFromGitHub {
|
|
|
|
owner = "deanproxy";
|
|
|
|
repo = "dlib";
|
|
|
|
rev = "f62f29e918748b7cea476220f7492672be81c9de";
|
|
|
|
sha256 = "0h34cikch98sb7nsqjnb9wl384c8ndln3m6yb1172l4y89qjg9rr";
|
|
|
|
};
|
|
|
|
|
|
|
|
in
|
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2021-08-01 20:48:53 +00:00
|
|
|
pname = "email-git";
|
|
|
|
version = "unstable-2016-01-31";
|
2016-01-04 03:30:07 +00:00
|
|
|
src = eMailSrc;
|
|
|
|
|
2022-05-21 08:47:17 +00:00
|
|
|
patches = [
|
|
|
|
# Pul patch pending upstream inclusion for -fno-common toolchain support:
|
|
|
|
# https://github.com/deanproxy/eMail/pull/61
|
|
|
|
(fetchpatch {
|
|
|
|
name = "fno-common.patch";
|
|
|
|
url = "https://github.com/deanproxy/eMail/commit/c3c1e52132832be0e51daa6e0037d5bb79a17751.patch";
|
|
|
|
sha256 = "17ndrb65g0v4y521333h4244419s8nncm0yx2jwv12sf0dl6gy8i";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2016-01-04 03:30:07 +00:00
|
|
|
buildInputs = [ openssl ];
|
|
|
|
|
|
|
|
unpackPhase = ''
|
|
|
|
unpackPhase;
|
|
|
|
cp -Rp ${dlibSrc}/* ${srcRoot}/dlib;
|
|
|
|
chmod -R +w ${srcRoot}/dlib;
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Command line SMTP client";
|
|
|
|
license = with lib.licenses; [ gpl2 ];
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://deanproxy.com/code";
|
2021-01-15 09:19:50 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2024-02-11 02:19:15 +00:00
|
|
|
mainProgram = "email";
|
2016-01-04 03:30:07 +00:00
|
|
|
};
|
2016-08-02 17:50:55 +00:00
|
|
|
}
|