diff --git a/pkgs/tools/networking/email/default.nix b/pkgs/tools/networking/email/default.nix index 2a6faa9c1731..8848068d0dea 100644 --- a/pkgs/tools/networking/email/default.nix +++ b/pkgs/tools/networking/email/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, fetchFromGitHub, openssl }: +{ stdenv, lib, fetchFromGitHub, fetchpatch, openssl }: let eMailSrc = fetchFromGitHub { @@ -24,6 +24,16 @@ stdenv.mkDerivation { version = "unstable-2016-01-31"; src = eMailSrc; + 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"; + }) + ]; + buildInputs = [ openssl ]; unpackPhase = ''