From 7779a7bdbee6202f22f13635ab2b6813230cb269 Mon Sep 17 00:00:00 2001 From: Emily Date: Sun, 6 Oct 2024 23:16:53 +0100 Subject: [PATCH] mjmap: init at 0.1.0-unstable-2023-11-13 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit I needed to use `git send-email`, and I wanted an MTA that supported JMAP to use with it. We already package `mujmap`, but even after bumping it to the latest Git commit to deal with Fastmail authentication changes, it choked on the beautiful UTF‐8 email I created. Enter this random Go tool from a random SourceHut repository that did just the trick. --- pkgs/by-name/mj/mjmap/package.nix | 42 +++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 pkgs/by-name/mj/mjmap/package.nix diff --git a/pkgs/by-name/mj/mjmap/package.nix b/pkgs/by-name/mj/mjmap/package.nix new file mode 100644 index 000000000000..8751757fb568 --- /dev/null +++ b/pkgs/by-name/mj/mjmap/package.nix @@ -0,0 +1,42 @@ +{ + lib, + buildGoModule, + fetchFromSourcehut, + unstableGitUpdater, +}: + +buildGoModule { + pname = "mjmap"; + version = "0.1.0-unstable-2023-11-13"; + + src = fetchFromSourcehut { + owner = "~rockorager"; + repo = "mjmap"; + rev = "d54badae8152b4db6eec8b03a7bd7c5ff1724aa7"; + hash = "sha256-yFYYnklNNOHTfoT54kOIVoM4t282/0Ir4l72GmqlGSY="; + }; + + vendorHash = "sha256-fJuPrzjRH0FpYj2D9CsFdsdzYT0C3/D2PhmJIZTsgfQ="; + + installCheckPhase = '' + runHook preInstallCheck + + $out/bin/mjmap --version >/dev/null + + runHook postInstallCheck + ''; + + passthru.updateScript = unstableGitUpdater { + tagPrefix = "v."; + }; + + meta = { + description = "Sendmail‐compatible JMAP client"; + homepage = "https://git.sr.ht/~rockorager/mjmap"; + license = lib.licenses.mpl20; + sourceProvenance = [ lib.sourceTypes.fromSource ]; + maintainers = [ lib.maintainers.emily ]; + mainProgram = "mjmap"; + platforms = lib.platforms.unix; + }; +}