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