summary refs log tree commit diff
path: root/pkgs/tools/inputmethods/fcitx5
diff options
context:
space:
mode:
authoroxalica <oxalicc@pm.me>2021-06-08 00:13:41 +0800
committeroxalica <oxalicc@pm.me>2021-06-08 00:59:43 +0800
commitfbedf830ea5c666ad79ccd224b04dc6f5d406096 (patch)
tree07b8f49edf2d6a2c6e18a1ea4ba0be37e5d2f16f /pkgs/tools/inputmethods/fcitx5
parent1be94227254e6529e20e0e3989264efdf979e183 (diff)
downloadnixpkgs-fbedf830ea5c666ad79ccd224b04dc6f5d406096.tar
nixpkgs-fbedf830ea5c666ad79ccd224b04dc6f5d406096.tar.gz
nixpkgs-fbedf830ea5c666ad79ccd224b04dc6f5d406096.tar.bz2
nixpkgs-fbedf830ea5c666ad79ccd224b04dc6f5d406096.tar.lz
nixpkgs-fbedf830ea5c666ad79ccd224b04dc6f5d406096.tar.xz
nixpkgs-fbedf830ea5c666ad79ccd224b04dc6f5d406096.tar.zst
nixpkgs-fbedf830ea5c666ad79ccd224b04dc6f5d406096.zip
fcitx5: fix update script
Diffstat (limited to 'pkgs/tools/inputmethods/fcitx5')
-rwxr-xr-xpkgs/tools/inputmethods/fcitx5/update.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/pkgs/tools/inputmethods/fcitx5/update.py b/pkgs/tools/inputmethods/fcitx5/update.py
index e3513c747fc..9f54e313fd3 100755
--- a/pkgs/tools/inputmethods/fcitx5/update.py
+++ b/pkgs/tools/inputmethods/fcitx5/update.py
@@ -1,5 +1,5 @@
 #!/usr/bin/env nix-shell
-#!nix-shell -i python3 -p nix-prefetch-github python3Packages.requests
+#!nix-shell -i python3 -p nix-update nix-prefetch-github python3Packages.requests
 
 from nix_prefetch_github import *
 import json
@@ -12,8 +12,7 @@ REPOS = [ "libime", "xcb-imdkit", "fcitx5", "fcitx5-gtk", "fcitx5-qt", "fcitx5-c
 OWNER = "fcitx"
 
 def get_latest_tag(repo, owner=OWNER):
-    r = requests.get( 'https://api.github.com/repos/{}/{}/tags'.format(owner,repo)
-                    , auth=('poscat', 'db5e6fd16d0eb8c36385d3d944e058a1178b4265'))
+    r = requests.get('https://api.github.com/repos/{}/{}/tags'.format(owner,repo))
     return r.json()[0].get("name")
 
 def main():