about summary refs log tree commit diff
path: root/third_party/smtprelay/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'third_party/smtprelay/default.nix')
-rw-r--r--third_party/smtprelay/default.nix21
1 files changed, 21 insertions, 0 deletions
diff --git a/third_party/smtprelay/default.nix b/third_party/smtprelay/default.nix
new file mode 100644
index 000000000000..1a68245e9243
--- /dev/null
+++ b/third_party/smtprelay/default.nix
@@ -0,0 +1,21 @@
+# A simple SMTP relay without the kitchen sink.
+{ pkgs, lib, ... }:
+
+pkgs.buildGoModule rec {
+  pname = "smtprelay";
+  version = "1.7.0";
+  vendorHash = "sha256:00nb81hdg5pv5l0q7w5lv08dv4v72vml7jha351frani0gpg27pn";
+
+  src = pkgs.fetchFromGitHub {
+    owner = "decke";
+    repo = "smtprelay";
+    rev = "v${version}";
+    sha256 = "0js18xhk64g0g82dx8ii8vhbbssj3pxf1hqv1zadnckdgwfwlj2r";
+  };
+
+  meta = with lib; {
+    description = "Simple Golang SMTP relay/proxy server";
+    homepage = https://github.com/decke/smtprelay;
+    license = licenses.mit;
+  };
+}