Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
57 lines
1.3 KiB
Nix
57 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
python3,
|
|
stdenv,
|
|
}:
|
|
|
|
python3.pkgs.buildPythonApplication rec {
|
|
pname = "fedifetcher";
|
|
version = "7.1.16";
|
|
format = "other";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "nanos";
|
|
repo = "FediFetcher";
|
|
tag = "v${version}";
|
|
hash = "sha256-8eSzXstOOEx+yzwjcSgQfv8c0d+1gsVemzGG/U1TWEo=";
|
|
};
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
defusedxml
|
|
python-dateutil
|
|
requests
|
|
xxhash
|
|
];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -vD find_posts.py $out/bin/fedifetcher
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
checkPhase = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
|
|
runHook preCheck
|
|
|
|
$out/bin/fedifetcher --help>/dev/null
|
|
|
|
runHook postCheck
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Tool for Mastodon that automatically fetches missing replies and posts from other fediverse instances";
|
|
longDescription = ''
|
|
FediFetcher is a tool for Mastodon that automatically fetches missing
|
|
replies and posts from other fediverse instances, and adds them to your
|
|
own Mastodon instance.
|
|
'';
|
|
homepage = "https://blog.thms.uk/fedifetcher";
|
|
changelog = "https://github.com/nanos/FediFetcher/releases/tag/${src.tag}";
|
|
license = licenses.mit;
|
|
teams = [ teams.c3d2 ];
|
|
mainProgram = "fedifetcher";
|
|
};
|
|
}
|