1{ stdenv, writeScript, coreutils, time, gnutar, gzip, hydra-migration, jq }:
5writeScript "check-hydra.sh" ''
10 export PATH="${makeBinPath [ coreutils time gnutar gzip hydra-migration jq ]}"
12 echo '~~~ Evaluating release.nix with --arg ifdLevel '$1
13 command time --format '%e' -o eval-time.txt \
15 --option allowed-uris "https://github.com/NixOS https://github.com/input-output-hk" \
16 --arg supportedSystems '[ builtins.currentSystem ]' \
18 -I . release.nix > eval.json
20 if [ "$EVAL_EXIT_CODE" != 0 ]
22 rm eval.json eval-time.txt
23 echo -e "\\e[31;1mERROR: Failed to evaluate release.nix\\e[0m"
26 EVAL_TIME=$(cat eval-time.txt)
28 ERRORS=$(jq -r 'map_values(.error)|to_entries[]|select(.value)|@text "\(.key): \(.value)"' < eval.json)
29 NUM_ERRORS=$(jq -r '[ map_values(.error)|to_entries[]|select(.value) ] |length' < eval.json)
30 rm eval.json eval-time.txt
32 if [ "$NUM_ERRORS" != 0 ]
34 echo -e "\\e[31;1mERROR: evaluation completed in $EVAL_TIME seconds with $NUM_ERRORS errors\\e[0m"
38 echo -e "\\e[32;1mOK: evaluation completed in $EVAL_TIME seconds with no errors\\e[0m"
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list