diff options
author | ibbem <ibbem@ibbem.net> | 2024-04-09 13:17:04 +0200 |
---|---|---|
committer | ibbem <ibbem@ibbem.net> | 2024-04-09 13:38:15 +0200 |
commit | 4b8939b1fe8435e434ec655e16f9b894cc8a4258 (patch) | |
tree | 6b8649eeb759ef2c0267db1b8d9fd7002a7b43cc /pkgs/shells/zsh/oh-my-zsh | |
parent | f8d178998b51c0eb9d249973d1a1a91bbde86719 (diff) |
oh-my-zsh: Fix the `updateScript`
All auto-update attempts by the R. RyanTM bot after 2023-06-26 failed with the error ``` update-source-version: error: Couldn't figure out where out where to patch in new version in 'oh-my-zsh'! ``` This is due to the removal of the `oh-my-zsh.rev` attribute in the last auto-update (54067c54a92e7c9f038478bbd5d4b2b65cc967f2).
Diffstat (limited to 'pkgs/shells/zsh/oh-my-zsh')
-rw-r--r-- | pkgs/shells/zsh/oh-my-zsh/default.nix | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/pkgs/shells/zsh/oh-my-zsh/default.nix b/pkgs/shells/zsh/oh-my-zsh/default.nix index 93b9f596e395a..e5ac2d3ed5417 100644 --- a/pkgs/shells/zsh/oh-my-zsh/default.nix +++ b/pkgs/shells/zsh/oh-my-zsh/default.nix @@ -99,8 +99,7 @@ stdenv.mkDerivation rec { nixpkgs="$(git rev-parse --show-toplevel)" default_nix="$nixpkgs/pkgs/shells/zsh/oh-my-zsh/default.nix" latestDate="$(curl -L -s https://api.github.com/repos/ohmyzsh/ohmyzsh/commits/$latestSha | jq '.commit.committer.date' | sed 's|"\(.*\)T.*|\1|g')" - update-source-version oh-my-zsh "$latestSha" --version-key=rev - update-source-version oh-my-zsh "$latestDate" --ignore-same-hash + update-source-version oh-my-zsh "$latestDate" --rev="$latestSha" nixfmt "$default_nix" else echo "${pname} is already up-to-date" |