nixpkgs/pkgs/applications/misc/rss-bridge-cli/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
683 B
Nix
Raw Normal View History

{ lib, writeShellScriptBin, rss-bridge, php }:
let
phpWithExts = (php.withExtensions
({ all, ... }: with all; [
curl
filter
iconv
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 ];
2024-02-11 02:19:15 +00:00
mainProgram = "rss-bridge-cli";
};
})