steam: move to system-wide steam installation
This commit is contained in:
parent
c081c63146
commit
736ce95ef2
6 changed files with 29 additions and 58 deletions
|
@ -2,7 +2,6 @@
|
|||
# You can build them using 'nix build .#example' or (legacy) 'nix-build -A example'
|
||||
|
||||
{ pkgs, inputs }: {
|
||||
dzgui = pkgs.callPackage ./dzgui.nix { };
|
||||
plymouth-theme-red = pkgs.callPackage ./plymouth-theme-red.nix { inherit inputs; };
|
||||
cargo-checkmate = pkgs.callPackage ./cargo-checkmate.nix { };
|
||||
}
|
||||
|
|
|
@ -1,49 +0,0 @@
|
|||
{ pkgs, lib, stdenv, fetchFromGitHub, makeWrapper }:
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "dzgui";
|
||||
version = "0.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "aclist";
|
||||
repo = "dztui";
|
||||
rev = "10c29c0542a07fb81b5922f96b416e3a2e8079cc";
|
||||
sha256 = "sha256-VmW0ohXK+9CAr4yGaA/NSW7+E1vUvZthom8MculmOEs=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ makeWrapper ];
|
||||
|
||||
runtimeDeps = with pkgs; [
|
||||
curl
|
||||
jq
|
||||
python3
|
||||
steam
|
||||
wmctrl
|
||||
gnome.zenity
|
||||
];
|
||||
|
||||
patchPhase = ''
|
||||
sed -i \
|
||||
-e 's|/usr/bin/zenity|${pkgs.gnome.zenity}/bin/zenity|' \
|
||||
-e 's|2>/dev/null||' \
|
||||
dzgui.sh
|
||||
'';
|
||||
|
||||
installPhase = ''
|
||||
install -Dm777 -T dzgui.sh $out/bin/.dzgui-unwrapped_
|
||||
makeWrapper $out/bin/.dzgui-unwrapped_ $out/bin/dzgui \
|
||||
--prefix PATH ':' ${lib.makeBinPath runtimeDeps}
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/pronovic/banner";
|
||||
description = "DayZ TUI/GUI server browser";
|
||||
license = licenses.gpl3;
|
||||
|
||||
longDescription = ''
|
||||
DZGUI allows you to connect to both official and modded/community DayZ
|
||||
servers on Linux and provides a graphical interface for doing so.
|
||||
'';
|
||||
|
||||
platforms = platforms.all;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue