Add and enable tinytinyrss fever api derivation

This commit is contained in:
Amanda Graven 2023-01-29 18:47:19 +01:00
parent 7a784af41d
commit 34df05f81a
Signed by: amanda
GPG key ID: F747582C5608F4CB
2 changed files with 41 additions and 1 deletions

View file

@ -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;
};
}

View file

@ -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 {})
];
};
}