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 (54067c54a9).
This commit is contained in:
ibbem 2024-04-09 13:17:04 +02:00
parent f8d178998b
commit 4b8939b1fe

View File

@ -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"