mirror of
https://github.com/lelgenio/dzgui-nix.git
synced 2024-12-24 11:55:36 -03:00
Update to version 3.3.0
This commit is contained in:
parent
e18a4c048c
commit
83998493f7
17
default.nix
17
default.nix
|
@ -1,7 +1,7 @@
|
||||||
{ pkgs, lib, stdenv, fetchFromGitHub, makeWrapper }:
|
{ pkgs, lib, stdenv, fetchFromGitHub, makeWrapper }:
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "dzgui";
|
pname = "dzgui";
|
||||||
version = "0.1";
|
version = "3.3.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "aclist";
|
owner = "aclist";
|
||||||
|
@ -27,21 +27,18 @@ stdenv.mkDerivation rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./dont-write-desktop-entry-during-runtime.patch
|
./patches/dont-hardcode-zenity.patch
|
||||||
|
./patches/dont-write-desktop-entry-during-runtime.patch
|
||||||
|
./patches/dont-check-map-count.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
|
||||||
sed -i \
|
|
||||||
-e 's|/usr/bin/zenity|${pkgs.gnome.zenity}/bin/zenity|' \
|
|
||||||
-e 's|2>/dev/null||' \
|
|
||||||
dzgui.sh
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
install -DT dzgui.sh $out/bin/.dzgui-unwrapped_
|
install -DT dzgui.sh $out/bin/.dzgui-unwrapped_
|
||||||
install -DT ${./dzgui.desktop} $out/share/applications/dzgui.desktop
|
|
||||||
makeWrapper $out/bin/.dzgui-unwrapped_ $out/bin/dzgui \
|
makeWrapper $out/bin/.dzgui-unwrapped_ $out/bin/dzgui \
|
||||||
--prefix PATH ':' ${lib.makeBinPath runtimeDeps}
|
--prefix PATH ':' ${lib.makeBinPath runtimeDeps}
|
||||||
|
|
||||||
|
install -DT ${./dzgui.desktop} $out/share/applications/dzgui.desktop
|
||||||
|
install -DT images/dzgui $out/share/icons/hicolor/256x256/apps/dzgui.png
|
||||||
'';
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
diff --git a/dzgui.sh b/dzgui.sh
|
|
||||||
index d8a895b..0c6c002 100755
|
|
||||||
--- a/dzgui.sh
|
|
||||||
+++ b/dzgui.sh
|
|
||||||
@@ -222,10 +222,6 @@ freedesktop_dirs(){
|
|
||||||
for i in dzgui grid.png hero.png logo.png; do
|
|
||||||
curl -s "$img_url/$i" > "$sd_install_path/$i"
|
|
||||||
done
|
|
||||||
- write_desktop_file > "$freedesktop_path/dzgui.desktop"
|
|
||||||
- if [[ $is_steam_deck -eq 1 ]]; then
|
|
||||||
- write_desktop_file > "$HOME/Desktop/dzgui.desktop"
|
|
||||||
- fi
|
|
||||||
}
|
|
||||||
find_library_folder(){
|
|
||||||
steam_path=$(python3 $helpers_path/vdf2json.py -i $default_steam_path/steamapps/libraryfolders.vdf | jq -r '.libraryfolders[]|select(.apps|has("221100")).path')
|
|
|
@ -4,4 +4,5 @@ Type=Application
|
||||||
Terminal=false
|
Terminal=false
|
||||||
Exec=dzgui
|
Exec=dzgui
|
||||||
Name=DZGUI
|
Name=DZGUI
|
||||||
|
Icon=dzgui
|
||||||
Categories=Game
|
Categories=Game
|
||||||
|
|
14
flake.lock
14
flake.lock
|
@ -3,11 +3,11 @@
|
||||||
"dzgui": {
|
"dzgui": {
|
||||||
"flake": false,
|
"flake": false,
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1677659849,
|
"lastModified": 1684281410,
|
||||||
"narHash": "sha256-yTa/CN+GN/+UIp/2501iYRVoo4X6HcZdaS62gutBI4o=",
|
"narHash": "sha256-mjkEouCBiAu4so1kolmHbZAyH63LSGlrv4JANcj8+Vc=",
|
||||||
"owner": "aclist",
|
"owner": "aclist",
|
||||||
"repo": "dztui",
|
"repo": "dztui",
|
||||||
"rev": "c7c93558ae130e5281cebb3231f32377d37d21e2",
|
"rev": "8f66d12131f639116436dc41adf45632ab4251b5",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
@ -18,16 +18,16 @@
|
||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1678470307,
|
"lastModified": 1684280442,
|
||||||
"narHash": "sha256-OEeMUr3ueLIXyW/OaFUX5jUdimyQwMg/7e+/Q0gC/QE=",
|
"narHash": "sha256-nC1/kfh6tpMQSLQalbNTNnireIlxvLLugrjZdasNh+I=",
|
||||||
"owner": "NixOS",
|
"owner": "NixOS",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "0c4800d579af4ed98ecc47d464a5e7b0870c4b1f",
|
"rev": "6c591e7adc514090a77209f56c9d0c551ab8530d",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"id": "nixpkgs",
|
"id": "nixpkgs",
|
||||||
"ref": "nixos-unstable",
|
"ref": "nixos-22.11",
|
||||||
"type": "indirect"
|
"type": "indirect"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{
|
{
|
||||||
description = "DayZ TUI/GUI server browser";
|
description = "DayZ TUI/GUI server browser";
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "nixpkgs/nixos-unstable";
|
nixpkgs.url = "nixpkgs/nixos-22.11";
|
||||||
dzgui = {
|
dzgui = {
|
||||||
url = "github:aclist/dztui";
|
url = "github:aclist/dztui";
|
||||||
flake = false;
|
flake = false;
|
||||||
|
|
13
patches/dont-check-map-count.patch
Normal file
13
patches/dont-check-map-count.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
diff --git a/dzgui.sh b/dzgui.sh
|
||||||
|
index cbd49c2..d61b716 100755
|
||||||
|
--- a/dzgui.sh
|
||||||
|
+++ b/dzgui.sh
|
||||||
|
@@ -1850,7 +1850,7 @@ initial_setup(){
|
||||||
|
watcher_deps
|
||||||
|
check_architecture
|
||||||
|
check_version
|
||||||
|
- check_map_count
|
||||||
|
+ # check_map_count
|
||||||
|
fetch_helpers
|
||||||
|
config
|
||||||
|
steam_deps
|
13
patches/dont-hardcode-zenity.patch
Normal file
13
patches/dont-hardcode-zenity.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
diff --git a/dzgui.sh b/dzgui.sh
|
||||||
|
index 6f98976..8293d45 100755
|
||||||
|
--- a/dzgui.sh
|
||||||
|
+++ b/dzgui.sh
|
||||||
|
@@ -37,7 +37,7 @@ notify_url="$stable_url/helpers/d.html"
|
||||||
|
notify_img_url="$stable_url/helpers/d.webp"
|
||||||
|
forum_url="https://github.com/aclist/dztui/discussions"
|
||||||
|
version_file="$config_path/versions"
|
||||||
|
-steamsafe_zenity="/usr/bin/zenity"
|
||||||
|
+steamsafe_zenity="zenity"
|
||||||
|
|
||||||
|
#TODO: prevent connecting to offline servers
|
||||||
|
#TODO: abstract zenity title params and dimensions
|
12
patches/dont-write-desktop-entry-during-runtime.patch
Normal file
12
patches/dont-write-desktop-entry-during-runtime.patch
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
diff --git a/dzgui.sh b/dzgui.sh
|
||||||
|
index d61b716..6f98976 100755
|
||||||
|
--- a/dzgui.sh
|
||||||
|
+++ b/dzgui.sh
|
||||||
|
@@ -214,6 +214,7 @@ Categories=Game
|
||||||
|
END
|
||||||
|
}
|
||||||
|
freedesktop_dirs(){
|
||||||
|
+ return
|
||||||
|
mkdir -p "$sd_install_path"
|
||||||
|
mkdir -p "$freedesktop_path"
|
||||||
|
#TODO: update url
|
Loading…
Reference in a new issue