Merge pull request #302817 from ibbem/fix-oh-my-zsh-updateScript

oh-my-zsh: Fix the `updateScript`
This commit is contained in:
Weijia Wang 2024-04-09 21:16:26 +02:00 committed by GitHub
commit 9c1dbc6076
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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"