python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / tools / networking / email / default.nix
blob8848068d0dea1c937f9fe4f82d564c835e75d126
1 { stdenv, lib, fetchFromGitHub, fetchpatch, openssl }:
3 let
4   eMailSrc = fetchFromGitHub {
5     owner = "deanproxy";
6     repo = "eMail";
7     rev = "7d23c8f508a52bd8809e2af4290417829b6bb5ae";
8     sha256 = "1cxxzhm36civ6vjdgrk7mfmlzkih44kdii6l2xgy4r434s8rzcpn";
9   };
11   srcRoot = eMailSrc.name;
13   dlibSrc = fetchFromGitHub {
14     owner = "deanproxy";
15     repo = "dlib";
16     rev = "f62f29e918748b7cea476220f7492672be81c9de";
17     sha256 = "0h34cikch98sb7nsqjnb9wl384c8ndln3m6yb1172l4y89qjg9rr";
18   };
22 stdenv.mkDerivation {
23   pname = "email-git";
24   version = "unstable-2016-01-31";
25   src = eMailSrc;
27   patches = [
28     # Pul patch pending upstream inclusion for -fno-common toolchain support:
29     #   https://github.com/deanproxy/eMail/pull/61
30     (fetchpatch {
31       name = "fno-common.patch";
32       url = "https://github.com/deanproxy/eMail/commit/c3c1e52132832be0e51daa6e0037d5bb79a17751.patch";
33       sha256 = "17ndrb65g0v4y521333h4244419s8nncm0yx2jwv12sf0dl6gy8i";
34     })
35   ];
37   buildInputs = [ openssl ];
39   unpackPhase = ''
40     unpackPhase;
41     cp -Rp ${dlibSrc}/* ${srcRoot}/dlib;
42     chmod -R +w ${srcRoot}/dlib;
43   '';
45   meta = {
46     description = "Command line SMTP client";
47     license = with lib.licenses; [ gpl2 ];
48     homepage = "https://deanproxy.com/code";
49     platforms = lib.platforms.unix;
50   };