oh-my-zsh: GitHub repo moved

This commit is contained in:
Tim Steinbach 2019-12-12 07:38:40 -05:00
parent 3d1149e5ed
commit 60512b1823
No known key found for this signature in database
GPG Key ID: 6C654787275A64F1
2 changed files with 3 additions and 3 deletions

View File

@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
rev = "664664f6cd8a1c02a38063c8f2104f0515a19399"; rev = "664664f6cd8a1c02a38063c8f2104f0515a19399";
src = fetchgit { inherit rev; src = fetchgit { inherit rev;
url = "https://github.com/robbyrussell/oh-my-zsh"; url = "https://github.com/ohmyzsh/ohmyzsh";
sha256 = "0d9x4fp9hxyk3h4jlq74v5k9xyngcx1g45aihikyj6fzqk2h1pax"; sha256 = "0d9x4fp9hxyk3h4jlq74v5k9xyngcx1g45aihikyj6fzqk2h1pax";
}; };

View File

@ -4,11 +4,11 @@
set -eu -o pipefail set -eu -o pipefail
oldVersion="$(nix-instantiate --eval -E "with import ./. {}; lib.getVersion oh-my-zsh" | tr -d '"')" oldVersion="$(nix-instantiate --eval -E "with import ./. {}; lib.getVersion oh-my-zsh" | tr -d '"')"
latestSha="$(curl -L -s https://api.github.com/repos/robbyrussell/oh-my-zsh/commits\?sha\=master\&since\=${oldVersion} | jq -r '.[0].sha')" 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 '"')" url="$(nix-instantiate --eval -E "with import ./. {}; oh-my-zsh.src.url" | tr -d '"')"
if [ ! "null" = "${latestSha}" ]; then if [ ! "null" = "${latestSha}" ]; then
latestDate="$(curl -L -s https://api.github.com/repos/robbyrussell/oh-my-zsh/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.author.date' | sed 's|"\(.*\)T.*|\1|g')"
update-source-version oh-my-zsh "${latestSha}" --version-key=rev 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}" --ignore-same-hash
nixpkgs="$(git rev-parse --show-toplevel)" nixpkgs="$(git rev-parse --show-toplevel)"