rss-bridge-cli: init

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
ymeister 2020-10-30 02:13:54 +07:00
parent 857142e7c8
commit 1d4dc932d5
2 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,28 @@
{ stdenv, writeShellScriptBin, rss-bridge, php }:
let
phpWithExts = (php.withExtensions
({ all, ... }: with all; [
curl
filter
iconv
json
mbstring
openssl
simplexml
sqlite3
])
);
phpBin = "${phpWithExts}/bin/php";
in (writeShellScriptBin "rss-bridge-cli" ''
${phpBin} ${rss-bridge}/index.php "$@"
'').overrideAttrs (oldAttrs: rec {
version = rss-bridge.version;
meta = with stdenv.lib; {
description = "Command-line interface for RSS-Bridge";
homepage = "https://github.com/RSS-Bridge/rss-bridge";
license = licenses.unlicense;
maintainers = with maintainers; [ ymeister ];
};
})

View File

@ -6879,6 +6879,8 @@ in
rsibreak = libsForQt514.callPackage ../applications/misc/rsibreak { };
rss-bridge-cli = callPackage ../applications/misc/rss-bridge-cli { };
rss2email = callPackage ../applications/networking/feedreaders/rss2email {
pythonPackages = python3Packages;
};