The script parses Nix build logs to identify successfully completed derivations (skipping failed ones) and writes them to an output file. It tracks which derivations are expected to be built and correlates build start/end events to determine which ones completed successfully.
- Read all input files and process their lines
- Create a Set to store derivations that will be built (from the "these N derivations will be built" section)
- Track the currently building derivation in
currentBuilding - For each line: