git.iko.soy/typeable/nixpkgs
on master help sign in
oh-my-zsh: Fix update script

Pull commit date rather than author date to avoid going back in time on commits that have been sitting for a while.

commit2e00fff0474a55b59dc9599f3b3291f98426d71c authorTim Steinbach <tim@nequissimus.com> dateTue 10 Nov 2020, 09:21 (6 years ago) parent589bf72
1 file changed+1−1
pkgs/shells/zsh/oh-my-zsh/default.nix+1−1
pkgs/shells/zsh/oh-my-zsh/default.nix+1−1
@@ -92,7 +92,7 @@ stdenv.mkDerivation rec {
9292 if [ ! "null" = "$latestSha" ]; then
9393 nixpkgs="$(git rev-parse --show-toplevel)"
9494 default_nix="$nixpkgs/pkgs/shells/zsh/oh-my-zsh/default.nix"
95− latestDate="$(curl -L -s https://api.github.com/repos/ohmyzsh/ohmyzsh/commits/$latestSha | jq '.commit.author.date' | sed 's|"\(.*\)T.*|\1|g')"
95+ latestDate="$(curl -L -s https://api.github.com/repos/ohmyzsh/ohmyzsh/commits/$latestSha | jq '.commit.committer.date' | sed 's|"\(.*\)T.*|\1|g')"
9696 update-source-version oh-my-zsh "$latestSha" --version-key=rev
9797 update-source-version oh-my-zsh "$latestDate" --ignore-same-hash
9898 nixfmt "$default_nix"