From 23d1aa85163cadf83eb0e43000e6a108f4d3a5a3 Mon Sep 17 00:00:00 2001 From: Matt McHenry Date: Sun, 3 Jan 2016 22:30:07 -0500 Subject: [PATCH] email: init at d9fd259f --- pkgs/tools/networking/email/default.nix | 40 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 42 insertions(+) create mode 100644 pkgs/tools/networking/email/default.nix diff --git a/pkgs/tools/networking/email/default.nix b/pkgs/tools/networking/email/default.nix new file mode 100644 index 000000000000..2ff22c061811 --- /dev/null +++ b/pkgs/tools/networking/email/default.nix @@ -0,0 +1,40 @@ +{ stdenv, lib, fetchFromGitHub, openssl }: + +let + eMailSrc = fetchFromGitHub { + #awaiting acceptance of https://github.com/deanproxy/eMail/pull/29 + owner = "jerith666"; + repo = "eMail"; + rev = "d9fd259f952b573d320916ee34e807dd3dd24b1f"; + sha256 = "0q4ly4bhlv6lrlj5kmjs491aah1afmkjyw63i9yqnz4d2k6npvl9"; + }; + + srcRoot = "eMail-${eMailSrc.rev}-src"; + + dlibSrc = fetchFromGitHub { + owner = "deanproxy"; + repo = "dlib"; + rev = "f62f29e918748b7cea476220f7492672be81c9de"; + sha256 = "0h34cikch98sb7nsqjnb9wl384c8ndln3m6yb1172l4y89qjg9rr"; + }; + +in + +stdenv.mkDerivation { + name = "email-git-2016-01-31"; + src = eMailSrc; + + 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 ]; + homepage = http://deanproxy.com/code; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index c26313c417a5..b56254cbd88a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2253,6 +2253,8 @@ let guile = guile_1_8; }; + email = callPackage ../tools/networking/email { }; + maim = callPackage ../tools/graphics/maim {}; mairix = callPackage ../tools/text/mairix { };