Files
nixpkgs/pkgs/by-name/st/steam-tui/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

61 lines
1.3 KiB
Nix

{
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 = "steam-tui";
rev = version;
sha256 = "sha256-3vBIpPIsh+7PjTuNNqp7e/pdciOYnzuGkjb/Eks6QJw=";
};
cargoHash = "sha256-/39MrHCdJGTBTZplQcwYk6zpaVFYHpRKHhZC1GTNysY=";
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 <<EOF
#!${runtimeShell}
export PATH=${steamcmd}/bin:\$PATH
exec ${steam-run}/bin/steam-run $out/bin/.steam-tui-unwrapped '\$@'
EOF
chmod +x $out/bin/steam-tui
'';
checkFlags = [ "--skip=impure" ];
PKG_CONFIG_PATH = "${openssl.dev}/lib/pkgconfig";
meta = with lib; {
description = "Rust TUI client for steamcmd";
homepage = "https://github.com/dmadisetti/steam-tui";
license = licenses.mit;
maintainers = with maintainers; [
lom
dmadisetti
];
# steam only supports that platform
platforms = [ "x86_64-linux" ];
mainProgram = "steam-tui";
};
}