diff options
author | Tim Steinbach <tim@nequissimus.com> | 2020-11-10 09:21:34 -0500 |
---|---|---|
committer | Tim Steinbach <tim@nequissimus.com> | 2020-11-10 09:22:46 -0500 |
commit | 2e00fff0474a55b59dc9599f3b3291f98426d71c (patch) | |
tree | 7b797e5a3affc052af4d559cea9ea56de1782411 /pkgs/shells | |
parent | 589bf72e97f4735505d28ca0816bb5ae07300a15 (diff) |
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.
Diffstat (limited to 'pkgs/shells')
-rw-r--r-- | pkgs/shells/zsh/oh-my-zsh/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/shells/zsh/oh-my-zsh/default.nix b/pkgs/shells/zsh/oh-my-zsh/default.nix index 7c402b4733f55..37d75f78e0eb4 100644 --- a/pkgs/shells/zsh/oh-my-zsh/default.nix +++ b/pkgs/shells/zsh/oh-my-zsh/default.nix @@ -92,7 +92,7 @@ stdenv.mkDerivation rec { if [ ! "null" = "$latestSha" ]; then 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.author.date' | sed 's|"\(.*\)T.*|\1|g')" + 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 nixfmt "$default_nix" |