diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2021-05-12 18:32:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-12 18:32:29 +0000 |
commit | b057978bb2ec896d90598c946b9d916990b213d2 (patch) | |
tree | f6cc3e5179752a558b5738000746742ae4d8817b /pkgs/games | |
parent | a605e0318da6dedc54e54827e95991b5dfbf3ab6 (diff) | |
parent | f21472217286f3192840913554f88a6a54522939 (diff) |
Merge staging-next into staging
Diffstat (limited to 'pkgs/games')
-rw-r--r-- | pkgs/games/steam-tui/default.nix | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/games/steam-tui/default.nix b/pkgs/games/steam-tui/default.nix new file mode 100644 index 0000000000000..219bac701dc52 --- /dev/null +++ b/pkgs/games/steam-tui/default.nix @@ -0,0 +1,44 @@ +{ lib +, rustPlatform +, steamcmd +, fetchFromGitHub +, steam-run-native +, runtimeShell +, withWine ? false +, wine +}: + +rustPlatform.buildRustPackage rec { + pname = "steam-tui"; + version = "0.1.0"; + + src = fetchFromGitHub { + owner = "dmadisetti"; + repo = pname; + rev = version; + sha256 = "sha256-UTXYlPecv0MVonr9zZwfwopfC/Fdch/ZSCxqgUsem40="; + }; + + cargoSha256 = "sha256-VYBzwDLSV4N4qt2dNgIS399T2HIbPTdQ2rDIeheLlfo="; + + buildInputs = [ steamcmd steam-run-native ] + ++ lib.optional withWine wine; + + preFixup = '' + mv $out/bin/steam-tui $out/bin/.steam-tui-unwrapped + cat > $out/bin/steam-tui <<EOF + #!${runtimeShell} + exec steam-run $out/bin/.steam-tui-unwrapped '$@' + EOF + chmod +x $out/bin/steam-tui + ''; + + meta = with lib; { + description = "Rust TUI client for steamcmd"; + homepage = "https://github.com/dmadisetti/steam-tui"; + license = licenses.mit; + maintainers = with maintainers; [ legendofmiracles ]; + # steam only supports that platform + platforms = [ "x86_64-linux" ]; + }; +} |