Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1#!/usr/bin/env nix-shell 2#! nix-shell -i bash -p curl -p jq 3 4set -eu -o pipefail 5 6curl https://translatelocally.com/models.json \ 7 | jq '.models | map(with_entries(select([.key] | inside([ 8 "name", 9 "code", 10 "version", 11 "url", 12 "checksum" 13 ]))))' \ 14 > "$(dirname "$0")/models.json"