nixpkgs-suyu/pkgs/servers/bloat/default.nix
R. Ryantm 876320522f bloat: unstable-2022-09-23 -> unstable-2022-10-25
Co-authored-by: Francesco Gazzetta <fgaz@fgaz.me>
2022-10-26 11:41:53 +02:00

42 lines
1.2 KiB
Nix

{ lib
, buildGoModule
, fetchgit
, unstableGitUpdater
}:
buildGoModule {
pname = "bloat";
version = "unstable-2022-10-25";
src = fetchgit {
url = "git://git.freesoftwareextremist.com/bloat";
rev = "887ed241d64ba5db3fd3d87194fb5595e5ad7d73";
sha256 = "sha256-2G7DcK21GBICdQYWRTTMzHmkrgstrEelVlLcYgKlUGM=";
};
vendorSha256 = null;
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 ];
};
}