mirror of
https://github.com/lelgenio/dzgui-nix.git
synced 2024-12-24 20:05:35 -03:00
chore: fix fetching source from codeberg
This commit is contained in:
parent
eb18aa1d2b
commit
1e4f1050f2
|
@ -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;
|
||||
|
||||
|
|
|
@ -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'
|
||||
)"
|
||||
|
||||
|
|
Loading…
Reference in a new issue