1 #!/usr/bin/env nix-shell
2 #!nix-shell -i python3 -p nix-update python3Packages.requests
14 "fcitx5-chinese-addons",
30 def get_latest_tag(repo
, owner
=OWNER
):
31 r
= requests
.get('https://api.github.com/repos/{}/{}/tags'.format(owner
,repo
))
32 return r
.json()[0].get("name")
36 rev
= get_latest_tag(repo
)
37 if repo
== "fcitx5-qt":
38 subprocess
.run(["nix-update", "--commit", "--version", rev
, "libsForQt5.{}".format(repo
)])
40 subprocess
.run(["nix-update", "--commit", "--version", rev
, repo
])
42 if __name__
== "__main__":