1 #!/usr/bin/env nix-shell
2 #!nix-shell -i bash -p nix-prefetch-git -p jq
29 echo "# Generated using generateFetchSchema.sh"
30 echo "fetchFromGitHub:"
32 echo "mkdir -p package/rime"
33 for im
in ${imlist[@]}; do
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"