silx: 2.1.1 -> 2.1.2 (#361612)
[NixPkgs.git] / pkgs / by-name / ri / rime-data / generateFetchSchema.sh
blobe7c05c4102819bd001f33d517c887d6d009f02f1
1 #!/usr/bin/env nix-shell
2 #!nix-shell -i bash -p nix-prefetch-git -p jq
4 imlist=(
5 array
6 bopomofo
7 cangjie
8 cantonese
9 combo-pinyin
10 double-pinyin
11 emoji
12 essay
13 ipa
14 jyutping
15 luna-pinyin
16 middle-chinese
17 pinyin-simp
18 prelude
19 quick
20 scj
21 soutzoe
22 stenotype
23 stroke
24 terra-pinyin
25 wubi
26 wugniu
29 echo "# Generated using generateFetchSchema.sh"
30 echo "fetchFromGitHub:"
31 echo \'\'
32 echo "mkdir -p package/rime"
33 for im in ${imlist[@]}; do
34 tempFile=$(mktemp)
35 echo "ln -sv \${fetchFromGitHub {"
36 echo " owner = \"rime\";"
37 echo " repo = \"rime-$im\";"
38 nix-prefetch-git --quiet https://github.com/rime/rime-$im \
39 | jq '{ rev: .rev, sha256: .sha256 }' \
40 | jq -r 'to_entries | map(" \(.key) = \"\(.value)\";") | .[]'
41 echo "}} package/rime/$im"
42 done
43 echo \'\'