protontricks: init at 1.2.3

fixes #61193
This commit is contained in:
MetaDark 2019-07-12 23:03:35 -04:00
parent a3f452ed0c
commit 5d053d8333
2 changed files with 46 additions and 0 deletions

@ -0,0 +1,40 @@
{ stdenv, lib, buildPythonApplication, fetchFromGitHub
, vdf, wine, winetricks, zenity
}:
buildPythonApplication rec {
pname = "protontricks";
version = "1.2.3";
src = fetchFromGitHub {
owner = "Matoking";
repo = pname;
rev = version;
sha256 = "1v7bgr1rkm8j99s5bv45cslw01qcx8i8zb6ysfrb53qz86zgkgsn";
};
propagatedBuildInputs = [ vdf ];
# The wine install shipped with Proton must run under steam's
# chrootenv, but winetricks and zenity break when running under
# it. See https://github.com/NixOS/nix/issues/902.
#
# The current workaround is to use wine from nixpkgs
makeWrapperArgs = [
"--set STEAM_RUNTIME 0"
"--set-default WINE ${wine}/bin/wine"
"--set-default WINESERVER ${wine}/bin/wineserver"
"--prefix PATH : ${lib.makeBinPath [
(winetricks.override { inherit wine; })
zenity
]}"
];
meta = with stdenv.lib; {
description = "A simple wrapper for running Winetricks commands for Proton-enabled games";
homepage = https://github.com/Matoking/protontricks;
license = licenses.gpl3;
platforms = with platforms; linux;
maintainers = with maintainers; [ metadark ];
};
}

@ -22014,6 +22014,12 @@ in
gtk = pkgs.gtk3;
};
protontricks = callPackage ../tools/package-management/protontricks {
inherit (python3Packages) buildPythonApplication vdf;
inherit (gnome3) zenity;
wine = wineWowPackages.minimal;
};
stepmania = callPackage ../games/stepmania {
ffmpeg = ffmpeg_2;
};