mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-11 08:13:04 +00:00
3f9ea32279
This adds `pkgs.translatelocally-models.*` providing machine translation models which can be used with `pkgs.translatelocally`. `translatelocally-models.is-en-tiny` is marked as broken because its archive is missing.
15 lines
312 B
Bash
Executable File
15 lines
312 B
Bash
Executable File
#!/usr/bin/env nix-shell
|
|
#! nix-shell -i bash -p curl -p jq
|
|
|
|
set -eu -o pipefail
|
|
|
|
curl https://translatelocally.com/models.json \
|
|
| jq '.models | map(with_entries(select([.key] | inside([
|
|
"name",
|
|
"code",
|
|
"version",
|
|
"url",
|
|
"checksum"
|
|
]))))' \
|
|
> "$(dirname "$0")/models.json"
|