oh-my-zsh: Fix update script

This commit is contained in:
Tim Steinbach 2020-08-31 09:15:47 -04:00
parent f076cd769d
commit 416987cfff
No known key found for this signature in database
GPG key ID: 6538CB9266B06F31
2 changed files with 2 additions and 2 deletions

View file

@ -6,11 +6,12 @@
stdenv.mkDerivation rec {
version = "2020-08-28";
pname = "oh-my-zsh";
rev = "4ed6fd2b8b6a0efb2f84f00a64503282aca260e7";
src = fetchFromGitHub {
inherit rev;
owner = "ohmyzsh";
repo = "ohmyzsh";
rev = "4ed6fd2b8b6a0efb2f84f00a64503282aca260e7";
sha256 = "0f2f1k6s28lgxpjdgl4s7jisw6dgva9mcsqlsq0wg6041p246nai";
};

View file

@ -5,7 +5,6 @@ set -eu -o pipefail
oldVersion="$(nix-instantiate --eval -E "with import ./. {}; lib.getVersion oh-my-zsh" | tr -d '"')"
latestSha="$(curl -L -s https://api.github.com/repos/ohmyzsh/ohmyzsh/commits\?sha\=master\&since\=${oldVersion} | jq -r '.[0].sha')"
url="$(nix-instantiate --eval -E "with import ./. {}; oh-my-zsh.src.url" | tr -d '"')"
if [ ! "null" = "${latestSha}" ]; then
latestDate="$(curl -L -s https://api.github.com/repos/ohmyzsh/ohmyzsh/commits/${latestSha} | jq '.commit.author.date' | sed 's|"\(.*\)T.*|\1|g')"