···1+{ lib
2+, buildGoModule
3+, fetchFromGitHub
4+}:
5+buildGoModule rec {
6+ pname = "caeml";
7+ version = "unstable-2023-05-24";
8+9+ src = fetchFromGitHub {
10+ owner = "ferdinandyb";
11+ repo = pname;
12+ rev = "25dbe10e99aac9b0ce3b80787c162628104f5cd2";
13+ sha256 = "UIQCNkUyrtMF0IiAfkDvE8siqxNvfFc9TZdlZiTxCVc=";
14+ };
15+16+ vendorHash = "sha256-SDJsRLIGlLv/6NUctCrn6z1IDEmum1Wn5I8RFuwcOe8=";
17+18+ meta = with lib; {
19+ description = "cat eml files";
20+ longDescription = ''
21+ Reads an email file from either STDIN or from a file passed as the first
22+ argument, digests it and outputs it to STDOUT in a more human readable
23+ format. This means only From, To, Cc, Bcc, Date and Subject headers are
24+ kept and these are decoded and of all the parts only text/plain is returned.
25+ '';
26+ homepage = "https://github.com/ferdinandyb/caeml";
27+ license = licenses.mit;
28+ maintainers = with maintainers; [ emilytrau ];
29+ };
30+}