diff options
Diffstat (limited to 'nixpkgs/pkgs/servers/bloat/default.nix')
-rw-r--r-- | nixpkgs/pkgs/servers/bloat/default.nix | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/servers/bloat/default.nix b/nixpkgs/pkgs/servers/bloat/default.nix new file mode 100644 index 000000000000..dfde129e8887 --- /dev/null +++ b/nixpkgs/pkgs/servers/bloat/default.nix @@ -0,0 +1,43 @@ +{ lib +, buildGoModule +, fetchgit +, unstableGitUpdater +}: + +buildGoModule { + pname = "bloat"; + version = "unstable-2024-02-12"; + + src = fetchgit { + url = "git://git.freesoftwareextremist.com/bloat"; + rev = "6ddec8db3ee73d3abdc85b6a2101020cf2455bce"; + hash = "sha256-NWi8vL1zyKgPlZo73qpR232r65foaYcjUKkVwyJ/C7c="; + }; + + 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"; + }; +} |