diff --git a/package/default.nix b/package/default.nix index 56c7d9d..0acbe2f 100644 --- a/package/default.nix +++ b/package/default.nix @@ -2,7 +2,7 @@ lib, stdenv, pkgs, - fetchFromGitHub, + fetchFromGitea, makeWrapper, curl, jq, @@ -15,13 +15,14 @@ }: stdenv.mkDerivation rec { pname = "dzgui"; - version = "5.5.0"; + version = "5.5.2"; - src = fetchFromGitHub { + src = fetchFromGitea { + domain = "codeberg.org"; owner = "aclist"; repo = "dztui"; - rev = "bae6a57e1ee5660a07e3a3c326ec68617b831d31"; - sha256 = "sha256-x5GSyrbEZoru5p70QVRSFx52Njkhvtg/+qc94MqpOmo="; + rev = "32b424da5cfa9955e98d840a5813e0d61cbe0a8a"; + hash = "sha256-t2wc3SMMFucVLzROco5Babe+URW3Z9pSsob7PNDMTJo="; }; postPatch = '' @@ -67,7 +68,7 @@ stdenv.mkDerivation rec { ''; meta = with lib; { - homepage = "https://github.com/pronovic/banner"; + homepage = "https://codeberg.org/aclist/dztui"; description = "DayZ TUI/GUI server browser"; license = licenses.gpl3; diff --git a/package/update.sh b/package/update.sh index 880a8f4..cec9001 100755 --- a/package/update.sh +++ b/package/update.sh @@ -4,12 +4,12 @@ set -xe latest_commit="$( - curl -L -s ${GITHUB_TOKEN:+-u ":${GITHUB_TOKEN}"} https://api.github.com/repos/aclist/dztui/branches/master \ - | jq -r .commit.sha + curl -L -s https://codeberg.org/api/v1/repos/aclist/dztui/branches/dzgui \ + | jq -r .commit.id )" version="$( - curl https://raw.githubusercontent.com/aclist/dztui/$latest_commit/dzgui.sh \ + curl https://codeberg.org/aclist/dztui/raw/commit/$latest_commit/dzgui.sh \ | rg '^version=(.*)$' --replace '$1' )"