1{
2 lib,
3 buildGoModule,
4 fetchFromGitHub,
5 nix-update-script,
6}:
7buildGoModule {
8 pname = "sendgmail";
9 version = "0-unstable-2025-03-06";
10
11 src = fetchFromGitHub {
12 owner = "google";
13 repo = "gmail-oauth2-tools";
14 rev = "85c6b4f07e637683cc5e0ec6a66ce8e4397a4b18";
15 hash = "sha256-bzbTU9SA4dJKtQVkqESvV5o3l3MY4Uy7HDqo7jI3dhM=";
16 };
17
18 sourceRoot = "source/go/sendgmail";
19
20 vendorHash = "sha256-0pjcO2Ati+mUSw614uEL3CatHSgbgDUfOBE8bWpjmcw=";
21
22 passthru.updateScript = nix-update-script { };
23
24 meta = {
25 description = "Mimic sendmail with Gmail for git send-email";
26 homepage = "https://github.com/google/gmail-oauth2-tools/tree/master/go/sendgmail";
27 maintainers = [ lib.maintainers.samw ];
28 license = lib.licenses.asl20;
29 platforms = lib.platforms.unix;
30 };
31}