Skip to content

Commit

Permalink
add tt-rss-readability to tt-rss plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
gdamjan committed May 3, 2024
1 parent 09cf0b5 commit 54dfaad
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 9 deletions.
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 21 additions & 0 deletions tt-rss-readability.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
{ pkgs }:

pkgs.stdenv.mkDerivation rec {
pname = "tt-rss-plugin-readability";
version = "unstable-2024-04-03";

src = pkgs.fetchgit {
url = "https://git.tt-rss.org/fox/ttrss-af-readability.git";
sha256 = "sha256-pLNNb3iAx8H4KtH7ODyqlkiZeA35w5F6PLQoN4kHFgM=";
rev = "f2169ca419be339fa5ba32d0a50770f3d442d8b7";
};

dontBuild = true;

installPhase = ''
runHook preInstall
mkdir -p $out/readability/
cp -a * $out/readability/
runHook postInstall
'';
}
18 changes: 12 additions & 6 deletions tt-rss.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
{ pkgs }:

pkgs.stdenv.mkDerivation rec {
let
tt-rss-plugin-readability = import ./tt-rss-readability.nix { pkgs=pkgs; };

in
pkgs.stdenv.mkDerivation rec {
pname = "tt-rss";
version = "2022-12-02";
rev = "fa9c614ff144153ca1f4c0744fe0bc7d8f3a82ad";
sha256 = "sha256-m3MV/2m1bXDJfHBbI9bZRXeQehaPYDVQ46vyJLX7a7I=";
version = "2024-04-21";
rev = "d832907125a7711397da8ade5cfb51082d802542";
sha256 = "sha256-XxwBMKnj+8bTVN0h7+sGYTZMvhD4pr0S02jiV21kqR8=";

src = pkgs.fetchgit {
url = "https://git.tt-rss.org/fox/tt-rss.git";
Expand All @@ -13,7 +17,9 @@ pkgs.stdenv.mkDerivation rec {

installPhase = ''
mkdir -p $out/
cp -R * $out/
cp -a * $out/
echo ${version}-${builtins.substring 0 8 rev} > $out/version_static.txt
cp -a ${tt-rss-plugin-readability}/* $out/plugins/
'';
}
}

0 comments on commit 54dfaad

Please sign in to comment.