2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, writeShellScriptBin, rss-bridge, php }:
|
2020-10-29 19:13:54 +00:00
|
|
|
|
|
|
|
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;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-10-29 19:13:54 +00:00
|
|
|
description = "Command-line interface for RSS-Bridge";
|
|
|
|
homepage = "https://github.com/RSS-Bridge/rss-bridge";
|
|
|
|
license = licenses.unlicense;
|
|
|
|
maintainers = with maintainers; [ ymeister ];
|
|
|
|
};
|
|
|
|
})
|