diff --git a/config/hosts/wind/services/ttrss-plugins/fever.nix b/config/hosts/wind/services/ttrss-plugins/fever.nix new file mode 100644 index 0000000..e7e5080 --- /dev/null +++ b/config/hosts/wind/services/ttrss-plugins/fever.nix @@ -0,0 +1,37 @@ +{ lib, stdenv, fetchFromGitHub, tt-rss, ... }: + +stdenv.mkDerivation rec { + pname = "tt-rss-fever-api"; + version = "2.3.0"; + + src = fetchFromGitHub { + owner = "DigitalDJ"; + repo = "tinytinyrss-fever-plugin"; + rev = "${version}"; + sha256 = "fKHnF7pXMD04sWygoRnPH5hLUyWW4Dv/e4JWtfobX/g="; + }; + + installPhase = '' + mkdir -p $out/fever + cp -r fever_api.php index.php init.php $out/fever/ + ''; + + meta = { + description = "Fever API for Tiny Tiny RSS"; + longDescription = '' + This is a plugin for Tiny Tiny RSS (tt-rss). + + It lets you use feed reader programs which interface with the Fever feed + reader API together with Tiny Tiny RSS + ''; + license = lib.licenses.gpl3Only; + homepage = "https://github.com/DigitalDJ/tinytinyrss-fever-plugin"; + maintainers = [ { + email = "amanda@graven.dev"; + name = "Amanda Graven"; + github = "agraven"; + githubId = 23525639; + } ]; + inherit (tt-rss.meta) platforms; + }; +} diff --git a/config/hosts/wind/services/ttrss.nix b/config/hosts/wind/services/ttrss.nix index 3997afe..a93a1af 100644 --- a/config/hosts/wind/services/ttrss.nix +++ b/config/hosts/wind/services/ttrss.nix @@ -1,4 +1,4 @@ -{ config, ... }: +{ config, pkgs, ... }: { services.tt-rss = { @@ -6,5 +6,8 @@ registration.enable = false; virtualHost = "rss.graven.dev"; selfUrlPath = "https://rss.graven.dev"; + pluginPackages = [ + (pkgs.callPackage ./ttrss-plugins/fever.nix {}) + ]; }; }