mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-16 09:54:52 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
44 lines
1.2 KiB
Nix
44 lines
1.2 KiB
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchgit
|
|
, unstableGitUpdater
|
|
}:
|
|
|
|
buildGoModule {
|
|
pname = "bloat";
|
|
version = "0-unstable-2024-06-17";
|
|
|
|
src = fetchgit {
|
|
url = "git://git.freesoftwareextremist.com/bloat";
|
|
rev = "51d6ff26fe224444b921b5b1f367f15782cf84d3";
|
|
hash = "sha256-g5CbX134o9aeFggsVYnPfbZ4bsRQUUNnAe1KhTlONuU=";
|
|
};
|
|
|
|
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 = "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";
|
|
};
|
|
}
|