From 4b8939b1fe8435e434ec655e16f9b894cc8a4258 Mon Sep 17 00:00:00 2001 From: ibbem Date: Tue, 9 Apr 2024 13:17:04 +0200 Subject: [PATCH] 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). --- pkgs/shells/zsh/oh-my-zsh/default.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkgs/shells/zsh/oh-my-zsh/default.nix b/pkgs/shells/zsh/oh-my-zsh/default.nix index 93b9f596e395..e5ac2d3ed541 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"