···11+{ lib
22+, buildGoModule
33+, fetchFromGitHub
44+}:
55+buildGoModule rec {
66+ pname = "caeml";
77+ version = "unstable-2023-05-24";
88+99+ src = fetchFromGitHub {
1010+ owner = "ferdinandyb";
1111+ repo = pname;
1212+ rev = "25dbe10e99aac9b0ce3b80787c162628104f5cd2";
1313+ sha256 = "UIQCNkUyrtMF0IiAfkDvE8siqxNvfFc9TZdlZiTxCVc=";
1414+ };
1515+1616+ vendorHash = "sha256-SDJsRLIGlLv/6NUctCrn6z1IDEmum1Wn5I8RFuwcOe8=";
1717+1818+ meta = with lib; {
1919+ description = "cat eml files";
2020+ longDescription = ''
2121+ Reads an email file from either STDIN or from a file passed as the first
2222+ argument, digests it and outputs it to STDOUT in a more human readable
2323+ format. This means only From, To, Cc, Bcc, Date and Subject headers are
2424+ kept and these are decoded and of all the parts only text/plain is returned.
2525+ '';
2626+ homepage = "https://github.com/ferdinandyb/caeml";
2727+ license = licenses.mit;
2828+ maintainers = with maintainers; [ emilytrau ];
2929+ };
3030+}