Skip to content

Comments

mjmap: init at 0.1.0-unstable-2023-11-13#346977

Merged
symphorien merged 1 commit intoNixOS:masterfrom
emilazy:push-luwozrzttzlk
Oct 14, 2024
Merged

mjmap: init at 0.1.0-unstable-2023-11-13#346977
symphorien merged 1 commit intoNixOS:masterfrom
emilazy:push-luwozrzttzlk

Conversation

@emilazy
Copy link
Member

@emilazy emilazy commented Oct 7, 2024

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.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.11 Release Notes (or backporting 23.11 and 24.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

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.
@emilazy emilazy force-pushed the push-luwozrzttzlk branch from 630fbb3 to 7779a7b Compare October 7, 2024 00:45
@ofborg ofborg bot added 8.has: package (new) This PR adds a new package 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. labels Oct 7, 2024
Comment on lines +21 to +27
installCheckPhase = ''
runHook preInstallCheck

$out/bin/mjmap --version >/dev/null

runHook postInstallCheck
'';
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps this is best expressed through a versionCheckHook or passthru.tests.version = testVersion?

Copy link
Member Author

@emilazy emilazy Oct 14, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nope, because it reports its version as 0.0.0 🫠

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I could add an explanatory comment, though.

description = "Sendmail‐compatible JMAP client";
homepage = "https://git.sr.ht/~rockorager/mjmap";
license = lib.licenses.mpl20;
sourceProvenance = [ lib.sourceTypes.fromSource ];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't this the default?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, as is license = lib.licenses.free;. See #329470 (comment), #330741 (comment), and #332035 (comment) for my thoughts on this. Hopefully, in the future, both license and sourceProvenance will be mandatory fields.

Copy link
Contributor

@SigmaSquadron SigmaSquadron left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems good to me! The explanatory comment for the installCheck seems unnecessary, as you're the sole maintainer and it's quite easy to go from the git blame to the comments on this PR.


nixpkgs-review result

Generated using nixpkgs-review.

Command: nixpkgs-review pr 346977


x86_64-linux

✅ 1 package built:
  • mjmap

huh! This is the first time I saw nixpkgs-review's bespoke new markdown output.

@SigmaSquadron SigmaSquadron added the 12.approvals: 1 This PR was reviewed and approved by one person. label Oct 14, 2024
@symphorien symphorien merged commit afec31f into NixOS:master Oct 14, 2024
@emilazy emilazy deleted the push-luwozrzttzlk branch October 14, 2024 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

8.has: package (new) This PR adds a new package 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. 12.approvals: 1 This PR was reviewed and approved by one person.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants