ae91cbe6cc
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
28 lines
658 B
Nix
28 lines
658 B
Nix
{ lib, 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 lib; {
|
|
description = "Command-line interface for RSS-Bridge";
|
|
homepage = "https://github.com/RSS-Bridge/rss-bridge";
|
|
license = licenses.unlicense;
|
|
maintainers = with maintainers; [ ymeister ];
|
|
};
|
|
})
|