mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-15 14:26:33 +01: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.
14 lines
312 B
Bash
Executable file
14 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"
|