{ writers, lib, gnused, curl, jq, yq, }: writers.writeBashBin "radio-news" '' set -efu PATH=$PATH:${ lib.makeBinPath [ gnused curl jq yq ] } EVENTS=$( curl https://www.goodnewsnetwork.org/feed/ \ | xq ' .rss.channel.item | map(select((.pubDate|strptime("%a, %d %b %Y %H:%M:%S %z")) as $date | ($date | mktime) > (now - (60 * 60 * 24))) | {title, description}) ' ) SYSTEM_PROMPT=$(cat <