blob: 7a42404500bd7dc304443fe245f40872d6ef0874 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
{
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=";
};
cargoSha256 = "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 <<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";
};
}
|