mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-21 20:34:06 +00:00
steam-tui: 0.1.0 -> 0.3.0
This commit is contained in:
parent
6ecf516011
commit
6b4513fd20
@ -1,28 +1,35 @@
|
||||
{ lib
|
||||
, rustPlatform
|
||||
, steamcmd
|
||||
, fetchFromGitHub
|
||||
, steam-run
|
||||
, runtimeShell
|
||||
, withWine ? false
|
||||
, wine
|
||||
{
|
||||
lib,
|
||||
rustPlatform,
|
||||
steamcmd,
|
||||
fetchFromGitHub,
|
||||
steam-run,
|
||||
openssl,
|
||||
pkg-config,
|
||||
runtimeShell,
|
||||
withWine ? false,
|
||||
wine,
|
||||
}:
|
||||
|
||||
rustPlatform.buildRustPackage rec {
|
||||
pname = "steam-tui";
|
||||
version = "0.1.0";
|
||||
version = "0.3.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dmadisetti";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
sha256 = "sha256-UTXYlPecv0MVonr9zZwfwopfC/Fdch/ZSCxqgUsem40=";
|
||||
sha256 = "sha256-3vBIpPIsh+7PjTuNNqp7e/pdciOYnzuGkjb/Eks6QJw=";
|
||||
};
|
||||
|
||||
cargoSha256 = "sha256-VYBzwDLSV4N4qt2dNgIS399T2HIbPTdQ2rDIeheLlfo=";
|
||||
cargoSha256 = "sha256-poNPdrMguV79cwo2Eq1dGVUN0E4yG84Q63kU9o+eABo=";
|
||||
|
||||
buildInputs = [ steamcmd ]
|
||||
++ lib.optional withWine wine;
|
||||
nativeBuildInputs = [
|
||||
openssl
|
||||
pkg-config
|
||||
];
|
||||
|
||||
buildInputs = [ steamcmd ] ++ lib.optional withWine wine;
|
||||
|
||||
preFixup = ''
|
||||
mv $out/bin/steam-tui $out/bin/.steam-tui-unwrapped
|
||||
@ -34,11 +41,18 @@ rustPlatform.buildRustPackage rec {
|
||||
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 ];
|
||||
maintainers = with maintainers; [
|
||||
lom
|
||||
dmadisetti
|
||||
];
|
||||
# steam only supports that platform
|
||||
platforms = [ "x86_64-linux" ];
|
||||
mainProgram = "steam-tui";
|
||||
|
Loading…
Reference in New Issue
Block a user