Unverified Commit 4b92da53 authored by Sam W's avatar Sam W Committed by GitHub
Browse files

sendgmail: init at 0-unstable-2025-03-06

parent 6a39c6e4
Loading
Loading
Loading
Loading
+31 −0
Original line number Diff line number Diff line
{
  lib,
  buildGoModule,
  fetchFromGitHub,
  nix-update-script,
}:
buildGoModule {
  pname = "sendgmail";
  version = "0-unstable-2025-03-06";

  src = fetchFromGitHub {
    owner = "google";
    repo = "gmail-oauth2-tools";
    rev = "85c6b4f07e637683cc5e0ec6a66ce8e4397a4b18";
    hash = "sha256-bzbTU9SA4dJKtQVkqESvV5o3l3MY4Uy7HDqo7jI3dhM=";
  };

  sourceRoot = "source/go/sendgmail";

  vendorHash = "sha256-0pjcO2Ati+mUSw614uEL3CatHSgbgDUfOBE8bWpjmcw=";

  passthru.updateScript = nix-update-script { };

  meta = {
    description = "Mimic sendmail with Gmail for git send-email";
    homepage = "https://github.com/google/gmail-oauth2-tools/tree/master/go/sendgmail";
    maintainers = [ lib.maintainers.samw ];
    license = lib.licenses.asl20;
    platforms = lib.platforms.unix;
  };
}