Commit 4b8939b1 authored by ibbem's avatar ibbem
Browse files

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 (54067c54).
parent f8d17899
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -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"