Skip to content

Commit

Permalink
[Backport release-24.05] protontricks: 1.11.1 -> 1.12.0 (#345376)
Browse files Browse the repository at this point in the history
  • Loading branch information
kira-bruneau authored Oct 5, 2024
2 parents 28f5499 + 6d93645 commit 99d993c
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 5 deletions.
9 changes: 9 additions & 0 deletions pkgs/development/python-modules/vdf/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch2,
mock,
pytestCheckHook,
}:
Expand All @@ -18,6 +19,14 @@ buildPythonPackage rec {
hash = "sha256-6ozglzZZNKDtADkHwxX2Zsnkh6BE8WbcRcC9HkTTgPU=";
};

patches = [
# Support appinfo.vdf v29 (required by protontricks 1.12.0)
(fetchpatch2 {
url = "https://github.com/Matoking/vdf/commit/981cad270c2558aeb8eccaf42cfcf9fabbbed199.patch";
hash = "sha256-kLAbbB0WHjxq4rokLoGTPx43BU44EshteR59Ey9JnXo=";
})
];

nativeCheckInputs = [
mock
pytestCheckHook
Expand Down
22 changes: 18 additions & 4 deletions pkgs/tools/package-management/protontricks/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
, substituteAll
, writeShellScript
, steam-run
, fetchpatch2
, winetricks
, yad
, pytestCheckHook
Expand All @@ -16,13 +17,13 @@

buildPythonApplication rec {
pname = "protontricks";
version = "1.11.1";
version = "1.12.0";

src = fetchFromGitHub {
owner = "Matoking";
repo = pname;
rev = version;
sha256 = "sha256-a40IAFrzQ0mogMoXKb+Lp0fPc1glYophqtftigk3nAc=";
repo = "protontricks";
rev = "refs/tags/${version}";
hash = "sha256-dCb8mcwXoxD4abJjLEwk5tGp65XkvepmOX+Kc9Dl7fQ=";
};

patches = [
Expand All @@ -34,6 +35,19 @@ buildPythonApplication rec {
exec ${lib.getExe steam-run} bash "$@"
'';
})

# Revert vendored vdf since our vdf includes `appinfo.vdf` v29 support
(fetchpatch2 {
url = "https://github.com/Matoking/protontricks/commit/4198b7ea82369a91e3084d6e185f9b370f78eaec.patch";
revert = true;
hash = "sha256-1U/LiAliKtk3ygbIBsmoavXN0RSykiiegtml+bO8CnI=";
})

# Fix test_run_no_args test
(fetchpatch2 {
url = "https://github.com/Matoking/protontricks/commit/ff2381ad379a612e73f0d4604f1c9c3a012b3355.patch";
hash = "sha256-aiafLbiqS6TBBiQpfTYPVqhQs2OXYg/4yCtbuTv6Ug8=";
})
];

nativeBuildInputs = [ setuptools-scm ];
Expand Down
3 changes: 2 additions & 1 deletion pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -37250,7 +37250,8 @@ with pkgs;
steamback = python311.pkgs.callPackage ../tools/games/steamback { };

protontricks = python3Packages.callPackage ../tools/package-management/protontricks {
inherit winetricks steam-run yad;
steam-run = steamPackages.steam-fhsenv-without-steam.run;
inherit winetricks yad;
};

protonup-ng = with python3Packages; toPythonApplication protonup-ng;
Expand Down

0 comments on commit 99d993c

Please sign in to comment.