mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:04:00 +00:00
43 lines
1.2 KiB
Nix
43 lines
1.2 KiB
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchgit
|
|
, unstableGitUpdater
|
|
}:
|
|
|
|
buildGoModule {
|
|
pname = "bloat";
|
|
version = "unstable-2022-12-17";
|
|
|
|
src = fetchgit {
|
|
url = "git://git.freesoftwareextremist.com/bloat";
|
|
rev = "5147897c6c8ba3428ea6998f77241182ee8caa24";
|
|
sha256 = "sha256-/sSRzAAWO/KtXOD3lQsqaXc+lOuN7MJqbfASueLYBQk=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|