{
lib,
stdenv,
fetchgit,
nixosTests,
unstableGitUpdater,
}:
stdenv.mkDerivation rec {
pname = "tt-rss";
version = "0-unstable-2025-02-26";
src = fetchgit {
url = "https://git.tt-rss.org/fox/tt-rss.git";
rev = "532570ca17f1120a4bfc07195080e5e6a3c469fd";
hash = "sha256-eu0YfIwghuTETsYA3Lrs4LmK95gxxhFUZV/tEZHPo1U=";
};
installPhase = ''
runHook preInstall
mkdir $out
cp -ra * $out/
# see the code of Config::get_version(). you can check that the version in
# the footer of the preferences pages is not UNKNOWN
echo "${version}" > $out/version_static.txt
runHook postInstall
'';
passthru = {
inherit (nixosTests) tt-rss;
updateScript = unstableGitUpdater { hardcodeZeroVersion = true; };
meta = with lib; {
description = "Web-based news feed (RSS/Atom) aggregator";
license = licenses.gpl2Plus;
homepage = "https://tt-rss.org";
maintainers = with maintainers; [
gileri
globin
zohl
];
platforms = platforms.all;
}