Skip to content

Commit

Permalink
mailsend-go: init at 1.0.10
Browse files Browse the repository at this point in the history
mailsend-go is a rewrite of mailsend in go.

mailsend is not receiving feature updates as of 2019-02-11.
  • Loading branch information
jsoo1 committed Sep 5, 2023
1 parent 3df3b61 commit 9c7f923
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
38 changes: 38 additions & 0 deletions pkgs/tools/networking/mailsend-go/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{ lib, fetchFromGitHub, gitUpdater, buildGoModule }:
let
pname = "mailsend-go";

version = "1.0.10";

owner = "muquit";

rev-prefix = "v";

url = "https://github.com/${owner}/${pname}";
in

buildGoModule {
inherit pname version;

src = fetchFromGitHub {
inherit owner;
repo = pname;
rev = "${rev-prefix}${version}";
hash = "sha256-0coNy7gUhnC9LFVYUrgecmnwq7yW2UzisWc9iQdnh/Q=";
};

vendorSha256 = "sha256-Y6aAeMvQtWrTWHeNPymbUvwFQbEgdHy2DWm6emtZuxg=";

passthru.updateScript = gitUpdater {
inherit url rev-prefix;
};

meta = with lib; {
description = "Multi-platform command line tool to send mail via SMTP protocol";
homepage = url;
changelog = "https://raw.githubusercontent.com/${owner}/${pname}/${rev-prefix}${version}/ChangeLog.md";
license = licenses.mit;
maintainers = [ maintainers.jsoo1 ];
platforms = platforms.all;
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8121,6 +8121,8 @@ with pkgs;

mailsend = callPackage ../tools/networking/mailsend { };

mailsend-go = callPackage ../tools/networking/mailsend-go { };

mailutils = callPackage ../tools/networking/mailutils {
sasl = gsasl;
};
Expand Down

0 comments on commit 9c7f923

Please sign in to comment.