1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
{ depot, pkgs, ... }:
# Shared text/llm rendering for the mail frontends in this tree.
#
# This is a library, not a program: it is consumed through `deps` by mailweb
# and webmail-proton, which own the view data and the templates. What lives
# here is what must not differ between them — above all the trust boundary
# markers, whose whole value comes from being implemented once and correctly.
let
goDeps = import ../go-deps.nix { inherit depot pkgs; };
in
depot.nix.buildGo.package {
name = "mailtext";
path = "codeberg.org/Profpatsch/Profpatsch/users/Profpatsch/mailtext";
srcs = [
./html2text.go
./textview.go
./daterange.go
];
deps = [
# golang.org/x/net/html — parses HTML mail for the text renderings.
goDeps.golang-x-net.html
];
}
|