depot/third_party/nixpkgs/pkgs/servers/bloat/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

43 lines
1.2 KiB
Nix

{ lib
, buildGoModule
, fetchgit
, unstableGitUpdater
}:
buildGoModule {
pname = "bloat";
version = "unstable-2023-12-28";
src = fetchgit {
url = "git://git.freesoftwareextremist.com/bloat";
rev = "1d61f1aa27376e778b7a517fdd5739a8c1976d2e";
hash = "sha256-u75COa68sKhWeR3asQGgu2thQmDDGpJPmXLgnesQfNc=";
};
vendorHash = 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 ];
mainProgram = "bloat";
};
}