10 stdenv.mkDerivation rec {
11 pname = "discourse-mail-receiver";
14 src = fetchFromGitHub {
16 repo = "mail-receiver";
18 sha256 = "sha256-ob4Hb88odlFf5vSC9qhikhJowo4C5LksVmMuJRMNoI4=";
25 buildInputs = [ ruby ];
32 replace-literal -f -r -e /etc/postfix /run/discourse-mail-receiver .
34 cp -r receive-mail discourse-smtp-fast-rejection $out/bin/
37 wrapProgram $out/bin/receive-mail --set RUBYLIB $out/lib
38 wrapProgram $out/bin/discourse-smtp-fast-rejection --set RUBYLIB $out/lib
42 homepage = "https://www.discourse.org/";
43 platforms = platforms.linux;
44 maintainers = with maintainers; [ talyz ];
45 license = licenses.mit;
46 description = "Helper program which receives incoming mail for Discourse";