Merge pull request #78647 from MetaDark/protontricks
protontricks: 1.3.1 -> 1.4
This commit is contained in:
commit
e94e5cd03f
|
@ -1,18 +1,31 @@
|
||||||
{ stdenv, lib, buildPythonApplication, fetchFromGitHub
|
{ stdenv, lib, buildPythonApplication, fetchFromGitHub
|
||||||
, vdf, wine, winetricks, zenity
|
, setuptools_scm, vdf
|
||||||
|
, wine, winetricks, zenity
|
||||||
|
, pytest
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
pname = "protontricks";
|
pname = "protontricks";
|
||||||
version = "1.3.1";
|
version = "1.4";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "Matoking";
|
owner = "Matoking";
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "0snhm9r5igik030iqxm3zd9zvhlnsxi20zac71bbc29qflsi2dhk";
|
sha256 = "1aarx6g8ykw1jvygfngmz8apdvfj26rcq10bwl228612kwigh7s2";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Fix interpreter in mock run.sh for tests
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace tests/conftest.py \
|
||||||
|
--replace '#!/bin/bash' '#!${stdenv.shell}' \
|
||||||
|
'';
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
export SETUPTOOLS_SCM_PRETEND_VERSION="${version}"
|
||||||
|
'';
|
||||||
|
|
||||||
|
nativeBuildInputs = [ setuptools_scm ];
|
||||||
propagatedBuildInputs = [ vdf ];
|
propagatedBuildInputs = [ vdf ];
|
||||||
|
|
||||||
# The wine install shipped with Proton must run under steam's
|
# The wine install shipped with Proton must run under steam's
|
||||||
|
@ -24,12 +37,12 @@ buildPythonApplication rec {
|
||||||
"--set STEAM_RUNTIME 0"
|
"--set STEAM_RUNTIME 0"
|
||||||
"--set-default WINE ${wine}/bin/wine"
|
"--set-default WINE ${wine}/bin/wine"
|
||||||
"--set-default WINESERVER ${wine}/bin/wineserver"
|
"--set-default WINESERVER ${wine}/bin/wineserver"
|
||||||
"--prefix PATH : ${lib.makeBinPath [
|
"--prefix PATH : ${lib.makeBinPath [ winetricks zenity ]}"
|
||||||
(winetricks.override { inherit wine; })
|
|
||||||
zenity
|
|
||||||
]}"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
checkInputs = [ pytest ];
|
||||||
|
checkPhase = "pytest";
|
||||||
|
|
||||||
meta = with stdenv.lib; {
|
meta = with stdenv.lib; {
|
||||||
description = "A simple wrapper for running Winetricks commands for Proton-enabled games";
|
description = "A simple wrapper for running Winetricks commands for Proton-enabled games";
|
||||||
homepage = https://github.com/Matoking/protontricks;
|
homepage = https://github.com/Matoking/protontricks;
|
||||||
|
|
|
@ -23399,9 +23399,12 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
protontricks = callPackage ../tools/package-management/protontricks {
|
protontricks = callPackage ../tools/package-management/protontricks {
|
||||||
inherit (python3Packages) buildPythonApplication vdf;
|
inherit (python3Packages) buildPythonApplication pytest setuptools_scm vdf;
|
||||||
inherit (gnome3) zenity;
|
inherit (gnome3) zenity;
|
||||||
wine = wineWowPackages.minimal;
|
wine = wineWowPackages.minimal;
|
||||||
|
winetricks = winetricks.override {
|
||||||
|
wine = wineWowPackages.minimal;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
stepmania = callPackage ../games/stepmania {
|
stepmania = callPackage ../games/stepmania {
|
||||||
|
|
Loading…
Reference in New Issue