1{
2 lib,
3 buildGoModule,
4 fetchgit,
5 unstableGitUpdater,
6}:
7
8buildGoModule {
9 pname = "bloat";
10 version = "0-unstable-2024-12-27";
11
12 src = fetchgit {
13 url = "git://git.freesoftwareextremist.com/bloat";
14 rev = "d171b6c2d50500cdfd2f3308bf82a5f79e22cd8b";
15 hash = "sha256-a9nL6NvZLQZLOuoqdDbZTH9dVtQ6guKopkAHughINcg=";
16 };
17
18 vendorHash = null;
19
20 postInstall = ''
21 mkdir -p $out/share/bloat
22 cp -r templates $out/share/bloat/templates
23 cp -r static $out/share/bloat/static
24 sed \
25 -e "s%=templates%=$out/share/bloat/templates%g" \
26 -e "s%=static%=$out/share/bloat/static%g" \
27 < bloat.conf > $out/share/bloat/bloat.conf.example
28 '';
29
30 passthru.updateScript = unstableGitUpdater { };
31
32 meta = with lib; {
33 description = "Web client for Pleroma and Mastodon";
34 longDescription = ''
35 A lightweight web client for Pleroma and Mastodon.
36 Does not require JavaScript to display text, images, audio and videos.
37 '';
38 homepage = "https://bloat.freesoftwareextremist.com";
39 downloadPage = "https://git.freesoftwareextremist.com/bloat/";
40 license = licenses.cc0;
41 maintainers = with maintainers; [ fgaz ];
42 mainProgram = "bloat";
43 };
44}