uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
45
pkgs/games/steam-tui/default.nix
Normal file
45
pkgs/games/steam-tui/default.nix
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
{ lib
|
||||
, rustPlatform
|
||||
, steamcmd
|
||||
, fetchFromGitHub
|
||||
, steam-run
|
||||
, 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 ]
|
||||
++ 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
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Rust TUI client for steamcmd";
|
||||
homepage = "https://github.com/dmadisetti/steam-tui";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ lom ];
|
||||
# steam only supports that platform
|
||||
platforms = [ "x86_64-linux" ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue