oh-my-zsh: GitHub repo moved
This commit is contained in:
parent
3d1149e5ed
commit
60512b1823
|
@ -9,7 +9,7 @@ stdenv.mkDerivation rec {
|
|||
rev = "664664f6cd8a1c02a38063c8f2104f0515a19399";
|
||||
|
||||
src = fetchgit { inherit rev;
|
||||
url = "https://github.com/robbyrussell/oh-my-zsh";
|
||||
url = "https://github.com/ohmyzsh/ohmyzsh";
|
||||
sha256 = "0d9x4fp9hxyk3h4jlq74v5k9xyngcx1g45aihikyj6fzqk2h1pax";
|
||||
};
|
||||
|
||||
|
|
|
@ -4,11 +4,11 @@
|
|||
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/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 '"')"
|
||||
|
||||
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 "${latestDate}" --ignore-same-hash
|
||||
nixpkgs="$(git rev-parse --show-toplevel)"
|
||||
|
|
Loading…
Reference in a new issue