newsboat: support feed titles

Fixes #861
This commit is contained in:
Robert Helgesson 2019-10-07 23:51:12 +02:00
parent 79c16b9a90
commit 90bf989002
No known key found for this signature in database
GPG key ID: 36BDAA14C2797E89
5 changed files with 79 additions and 12 deletions

View file

@ -0,0 +1,3 @@
{
newsboat-basics = ./newsboat-basics.nix;
}

View file

@ -0,0 +1,3 @@
http://example.org/feed.xml "tag1" "tag2" "~Cool feed"
http://example.org/feed2.xml
"query:foo:rssurl =~ \"example.com\""

View file

@ -0,0 +1,39 @@
{ config, lib, pkgs, ... }:
with lib;
{
config = {
programs.newsboat = {
enable = true;
urls = [
{
url = "http://example.org/feed.xml";
tags = [ "tag1" "tag2" ];
title = "Cool feed";
}
{
url = "http://example.org/feed2.xml";
}
];
queries = {
"foo" = "rssurl =~ \"example.com\"";
};
};
nixpkgs.overlays = [
(self: super: {
newsboat = pkgs.writeScriptBin "dummy-newsboat" "";
})
];
nmt.script = ''
assertFileContent \
home-files/.newsboat/urls \
${./newsboat-basics-urls.txt}
'';
};
}