def _lisp_deps_manifest(ctx, lisp_info):
    """Creates a file that lists all Lisp files needed by the target in order."""
    out = ctx.actions.declare_file(ctx.label.name + ".deps")
    content = ctx.actions.args()
    content.set_param_file_format("multiline")
    content.add_joined(
        lisp_info.features,
        join_with = "\n",
        format_each = "feature: %s",
    )
    content.add_joined(
        lisp_info.srcs,
        join_with = "\n",
        format_each = "src: %s",
    )
    ctx.actions.write(
        output = out,
        content = content,
    )
    return out