{ lib, rustPlatform, steamcmd, fetchFromGitHub, steam-run, openssl, pkg-config, runtimeShell, withWine ? false, wine, }: rustPlatform.buildRustPackage rec { pname = "steam-tui"; version = "0.3.0"; src = fetchFromGitHub { owner = "dmadisetti"; repo = pname; rev = version; sha256 = "sha256-3vBIpPIsh+7PjTuNNqp7e/pdciOYnzuGkjb/Eks6QJw="; }; cargoHash = "sha256-poNPdrMguV79cwo2Eq1dGVUN0E4yG84Q63kU9o+eABo="; nativeBuildInputs = [ openssl pkg-config ]; buildInputs = [ steamcmd ] ++ lib.optional withWine wine; preFixup = '' mv $out/bin/steam-tui $out/bin/.steam-tui-unwrapped cat > $out/bin/steam-tui <