Compare commits

..

No commits in common. "580022e73efedb17ddf640115539cb9bd1423d44" and "02722c68c2d79af3f2b433a13c7645afa84e52ff" have entirely different histories.

2 changed files with 9 additions and 10 deletions

View file

@ -2,7 +2,7 @@
lib, lib,
stdenv, stdenv,
pkgs, pkgs,
fetchFromGitea, fetchFromGitHub,
makeWrapper, makeWrapper,
curl, curl,
jq, jq,
@ -15,14 +15,13 @@
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "dzgui"; pname = "dzgui";
version = "5.5.2"; version = "5.5.0";
src = fetchFromGitea { src = fetchFromGitHub {
domain = "codeberg.org";
owner = "aclist"; owner = "aclist";
repo = "dztui"; repo = "dztui";
rev = "32b424da5cfa9955e98d840a5813e0d61cbe0a8a"; rev = "bae6a57e1ee5660a07e3a3c326ec68617b831d31";
hash = "sha256-t2wc3SMMFucVLzROco5Babe+URW3Z9pSsob7PNDMTJo="; sha256 = "sha256-x5GSyrbEZoru5p70QVRSFx52Njkhvtg/+qc94MqpOmo=";
}; };
postPatch = '' postPatch = ''
@ -68,7 +67,7 @@ stdenv.mkDerivation rec {
''; '';
meta = with lib; { meta = with lib; {
homepage = "https://codeberg.org/aclist/dztui"; homepage = "https://github.com/pronovic/banner";
description = "DayZ TUI/GUI server browser"; description = "DayZ TUI/GUI server browser";
license = licenses.gpl3; license = licenses.gpl3;

View file

@ -4,12 +4,12 @@
set -xe set -xe
latest_commit="$( latest_commit="$(
curl -L -s https://codeberg.org/api/v1/repos/aclist/dztui/branches/dzgui \ curl -L -s ${GITHUB_TOKEN:+-u ":${GITHUB_TOKEN}"} https://api.github.com/repos/aclist/dztui/branches/master \
| jq -r .commit.id | jq -r .commit.sha
)" )"
version="$( version="$(
curl https://codeberg.org/aclist/dztui/raw/commit/$latest_commit/dzgui.sh \ curl https://raw.githubusercontent.com/aclist/dztui/$latest_commit/dzgui.sh \
| rg '^version=(.*)$' --replace '$1' | rg '^version=(.*)$' --replace '$1'
)" )"