diff options
author | Nick Cao <nickcao@nichi.co> | 2023-12-28 13:34:33 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-28 13:34:33 -0500 |
commit | 4d488e2f603f7da3d0ae7c7bc225f6f82607b99e (patch) | |
tree | 1ff86c0210e4dcc4a84e54f01c27ad1ab846cb55 /pkgs/by-name/ni | |
parent | 1fae6d07b7846b99c2056f618ae0627714b862d2 (diff) | |
parent | c53dd4b2127e2751d321ce756793ebdfd4e395eb (diff) |
Merge pull request #277163 from 999eagle/fix/nitter-update
nitter: use guest_accounts branch in updateScript
Diffstat (limited to 'pkgs/by-name/ni')
-rw-r--r-- | pkgs/by-name/ni/nitter/package.nix | 2 | ||||
-rwxr-xr-x | pkgs/by-name/ni/nitter/update.sh | 25 |
2 files changed, 1 insertions, 26 deletions
diff --git a/pkgs/by-name/ni/nitter/package.nix b/pkgs/by-name/ni/nitter/package.nix index d3fc03b25acea..feaaa2f490973 100644 --- a/pkgs/by-name/ni/nitter/package.nix +++ b/pkgs/by-name/ni/nitter/package.nix @@ -40,7 +40,7 @@ buildNimPackage (finalAttrs: prevAttrs: { passthru = { tests = { inherit (nixosTests) nitter; }; - updateScript = unstableGitUpdater {}; + updateScript = unstableGitUpdater { branch = "guest_accounts"; }; }; meta = with lib; { diff --git a/pkgs/by-name/ni/nitter/update.sh b/pkgs/by-name/ni/nitter/update.sh deleted file mode 100755 index 30405f34b22e8..0000000000000 --- a/pkgs/by-name/ni/nitter/update.sh +++ /dev/null @@ -1,25 +0,0 @@ -#!/usr/bin/env nix-shell -#!nix-shell -i bash -p curl jq nix nix-update patchutils -set -euo pipefail - -info() { - if [ -t 2 ]; then - set -- '\033[32m%s\033[39m\n' "$@" - else - set -- '%s\n' "$@" - fi - printf "$@" >&2 -} - -nitter_old_rev=$(nix-instantiate --eval --strict --json -A nitter.src.rev . | jq -r .) -nix-update --version=branch --commit nitter -nitter_new_rev=$(nix-instantiate --eval --strict --json -A nitter.src.rev . | jq -r .) -if [ "$nitter_new_rev" = "$nitter_old_rev" ]; then - info "nitter is up-to-date." - exit -fi - -if curl -Sfs "https://github.com/zedeus/nitter/compare/$nitter_old_rev...$nitter_new_rev.patch" \ -| lsdiff | grep -Fxe 'a/nitter.nimble' -e 'b/nitter.nimble' > /dev/null; then - info "nitter.nimble changed, some dependencies probably need updating." -fi |