2022-12-02 08:20:57 +00:00
|
|
|
{ bash
|
|
|
|
, gawk
|
|
|
|
, git
|
|
|
|
, gnugrep
|
|
|
|
, fetchFromGitHub
|
|
|
|
, installShellFiles
|
|
|
|
, lib
|
|
|
|
, makeWrapper
|
|
|
|
, stdenv
|
|
|
|
, unixtools
|
|
|
|
, unzip
|
|
|
|
, wget
|
|
|
|
, xdotool
|
|
|
|
, xorg
|
|
|
|
, yad
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "steamtinkerlaunch";
|
2023-03-24 00:07:29 +00:00
|
|
|
version = "12.12";
|
2022-12-02 08:20:57 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sonic2kk";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2023-03-24 00:07:29 +00:00
|
|
|
hash = "sha256-oigHNfg5rHxRabwUs66ye+chJzivmCIw8mg/GaJLPkg=";
|
2022-12-02 08:20:57 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
# hardcode PROGCMD because #150841
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace steamtinkerlaunch --replace 'PROGCMD="''${0##*/}"' 'PROGCMD="steamtinkerlaunch"'
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installFlags = [ "PREFIX=\${out}" ];
|
|
|
|
|
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/steamtinkerlaunch --prefix PATH : ${lib.makeBinPath [
|
|
|
|
bash
|
|
|
|
gawk
|
|
|
|
git
|
|
|
|
gnugrep
|
|
|
|
unixtools.xxd
|
|
|
|
unzip
|
|
|
|
wget
|
|
|
|
xdotool
|
|
|
|
xorg.xprop
|
|
|
|
xorg.xrandr
|
|
|
|
xorg.xwininfo
|
|
|
|
yad
|
|
|
|
]}
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Linux wrapper tool for use with the Steam client for custom launch options and 3rd party programs";
|
|
|
|
homepage = "https://github.com/sonic2kk/steamtinkerlaunch";
|
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ urandom ];
|
|
|
|
platforms = lib.platforms.linux;
|
|
|
|
};
|
|
|
|
}
|