2022-02-27 15:12:05 +01:00
|
|
|
{ lib
|
|
|
|
, buildGoModule
|
|
|
|
, fetchgit
|
|
|
|
, unstableGitUpdater
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildGoModule {
|
|
|
|
pname = "bloat";
|
2023-11-17 06:28:25 +01:00
|
|
|
version = "unstable-2023-10-25";
|
2022-02-27 15:12:05 +01:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "git://git.freesoftwareextremist.com/bloat";
|
2023-11-17 06:28:25 +01:00
|
|
|
rev = "f4881e72675e87a9eae716436c3ac18a788d596d";
|
|
|
|
hash = "sha256-i6HjhGPPXKtQ7hVPECk9gZglFmjb/Fo9pFIq5ikw4Y8=";
|
2022-02-27 15:12:05 +01:00
|
|
|
};
|
|
|
|
|
2023-09-19 10:35:10 +02:00
|
|
|
vendorHash = null;
|
2022-02-27 15:12:05 +01:00
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
mkdir -p $out/share/bloat
|
|
|
|
cp -r templates $out/share/bloat/templates
|
|
|
|
cp -r static $out/share/bloat/static
|
|
|
|
sed \
|
|
|
|
-e "s%=templates%=$out/share/bloat/templates%g" \
|
|
|
|
-e "s%=static%=$out/share/bloat/static%g" \
|
|
|
|
< bloat.conf > $out/share/bloat/bloat.conf.example
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.updateScript = unstableGitUpdater { };
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A web client for Pleroma and Mastodon";
|
|
|
|
longDescription = ''
|
|
|
|
A lightweight web client for Pleroma and Mastodon.
|
|
|
|
Does not require JavaScript to display text, images, audio and videos.
|
|
|
|
'';
|
|
|
|
homepage = "https://bloat.freesoftwareextremist.com";
|
|
|
|
downloadPage = "https://git.freesoftwareextremist.com/bloat/";
|
|
|
|
license = licenses.cc0;
|
|
|
|
maintainers = with maintainers; [ fgaz ];
|
2023-11-27 02:17:53 +01:00
|
|
|
mainProgram = "bloat";
|
2022-02-27 15:12:05 +01:00
|
|
|
};
|
|
|
|
}
|