nixpkgs-suyu/pkgs/applications/misc/rss-bridge-cli/default.nix
ymeister 1d4dc932d5 rss-bridge-cli: init
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2020-10-30 20:10:20 +07:00

28 lines
668 B
Nix

{ 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 ];
};
})