mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 08:53:21 +00:00
steam-tui: init at 0.1.0
This commit is contained in:
parent
93123faae0
commit
7dd35786f3
44
pkgs/games/steam-tui/default.nix
Normal file
44
pkgs/games/steam-tui/default.nix
Normal file
@ -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" ];
|
||||
};
|
||||
}
|
@ -28417,6 +28417,8 @@ in
|
||||
nativeOnly = true;
|
||||
}).run;
|
||||
|
||||
steam-tui = callPackage ../games/steam-tui { };
|
||||
|
||||
steamcmd = steamPackages.steamcmd;
|
||||
|
||||
protontricks = python3Packages.callPackage ../tools/package-management/protontricks {
|
||||
|
Loading…
Reference in New Issue
Block a user