summaryrefslogtreecommitdiff
path: root/pkgs/tools/package-management/protontricks/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/package-management/protontricks/default.nix')
-rw-r--r--pkgs/tools/package-management/protontricks/default.nix23
1 files changed, 7 insertions, 16 deletions
diff --git a/pkgs/tools/package-management/protontricks/default.nix b/pkgs/tools/package-management/protontricks/default.nix
index ec5017c54c7e..0934ef1028db 100644
--- a/pkgs/tools/package-management/protontricks/default.nix
+++ b/pkgs/tools/package-management/protontricks/default.nix
@@ -3,6 +3,7 @@
, fetchFromGitHub
, setuptools_scm
, vdf
+, bash
, steam-run
, winetricks
, zenity
@@ -11,13 +12,13 @@
buildPythonApplication rec {
pname = "protontricks";
- version = "1.4.4";
+ version = "1.5.1";
src = fetchFromGitHub {
owner = "Matoking";
repo = pname;
rev = version;
- sha256 = "0i7p0jj7avmq3b2qlcpwcflipndrnwsvwvhc5aal7rm95aa7xhja";
+ hash = "sha256-SrBPqGRIsP0+ZWDe96sqjqCpJoY3Sn3VoPpMw7ellC0=";
};
patches = [
@@ -25,15 +26,13 @@ buildPythonApplication rec {
./steam-run.patch
];
- preBuild = ''
- export SETUPTOOLS_SCM_PRETEND_VERSION="${version}"
- '';
-
+ SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [ setuptools_scm ];
propagatedBuildInputs = [ vdf ];
makeWrapperArgs = [
"--prefix PATH : ${lib.makeBinPath [
+ bash
steam-run
(winetricks.override {
# Remove default build of wine to reduce closure size.
@@ -45,20 +44,12 @@ buildPythonApplication rec {
];
checkInputs = [ pytestCheckHook ];
- disabledTests = [
- # Steam runtime is hard-coded with steam-run.patch and can't be configured
- "test_run_steam_runtime_not_found"
- "test_unknown_steam_runtime_detected"
-
- # Steam runtime 2 currently isn't supported
- # See https://github.com/NixOS/nixpkgs/issues/100655
- "test_run_winetricks_steam_runtime_v2"
- ];
+ pythonImportsCheck = [ "protontricks" ];
meta = with lib; {
description = "A simple wrapper for running Winetricks commands for Proton-enabled games";
homepage = "https://github.com/Matoking/protontricks";
- license = licenses.gpl3;
+ license = licenses.gpl3Only;
maintainers = with maintainers; [ metadark ];
platforms = platforms.linux;
};