Unverified Commit ccd123f7 authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

steamtinkerlaunch: add dep, replace-fail, updater, update (#398244)

parents 0ae77886 f1846cee
Loading
Loading
Loading
Loading
+12 −5
Original line number Diff line number Diff line
@@ -7,24 +7,30 @@
  procps,
  stdenvNoCC,
  unixtools,
  unstableGitUpdater,
  unzip,
  usbutils,
  util-linux,
  wget,
  writeShellApplication,
  xdotool,
  xorg,
  yad,
  writeShellApplication,
}:

stdenvNoCC.mkDerivation {
  pname = "steamtinkerlaunch";
  version = "12.12-unstable-2024-05-03";
  version = "12.12-unstable-2025-02-21";

  src = fetchFromGitHub {
    owner = "sonic2kk";
    repo = "steamtinkerlaunch";
    rev = "59b421b2f3686120a076909a4a158824cd4ef05e";
    hash = "sha256-CGtSGAm+52t2zFsPJEsm76w+FEHhbOd9NYuerGa31tc=";
    rev = "36e917c383a333caa43e187c06c0aed0c30c0421";
    hash = "sha256-I7Aa7bZ6WB5LfCxyZUbl7fshyr2YWlZTMZDJKCODvhY=";
  };

  passthru.updateScript = unstableGitUpdater {
    tagPrefix = "v";
  };

  outputs = [
@@ -61,6 +67,7 @@ stdenvNoCC.mkDerivation {
          unixtools.xxd
          unzip
          usbutils
          util-linux
          wget
          xdotool
          xorg.xprop
@@ -91,7 +98,7 @@ stdenvNoCC.mkDerivation {

      cp -a $out/bin/steamtinkerlaunch $TMPDIR/steamtinkerlaunch
      # yad cannot print its version without a graphical session https://github.com/v1cont/yad/issues/277
      substituteInPlace $TMPDIR/steamtinkerlaunch --replace ${yad} ${fakeYad}
      substituteInPlace $TMPDIR/steamtinkerlaunch --replace-fail ${yad} ${fakeYad}
      HOME=$TMPDIR $TMPDIR/steamtinkerlaunch compat add

      cp -a $steamdir/compatibilitytools.d/SteamTinkerLaunch $steamcompattool