This program gets a random failing package from nixpkgs:trunk. It is currently a work-in-progress.
The official method is to run:
$ nix build
but you can also run:
$ cargo build
Q: Why is this so slow?
A: I am calling the Hydra API directly. I can't get the latest evaluation unless I get the list of every evaluation, and I have to manually check each build to see if it failed. I could use the HTML page, but that isn't as simple as calling an API and decoding JSON.
[X] Get the latest evaluation
[X] Get a failing build
[ ] Print metadata about it
[ ] Make it pretty
[ ] CLI options