forked from NixOS/nixpkgs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request NixOS#64705 from MetaDark/protontricks
protontricks: init at 1.2.3
- Loading branch information
Showing
5 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3272,6 +3272,11 @@ | |
email = "[email protected]"; | ||
name = "Celine Mercier"; | ||
}; | ||
metadark = { | ||
email = "[email protected]"; | ||
name = "Kira Bruneau"; | ||
github = "metadark"; | ||
}; | ||
mfossen = { | ||
email = "[email protected]"; | ||
github = "mfossen"; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ stdenv, buildPythonPackage, fetchFromGitHub | ||
, pytest, pytestcov, mock }: | ||
|
||
buildPythonPackage rec { | ||
pname = "vdf"; | ||
version = "3.1"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "ValvePython"; | ||
repo = pname; | ||
rev = "v${version}"; | ||
sha256 = "19xqjq2159w2l9vaxlkickvy3zksp9ssdkvbfcfggxz31miwp1zr"; | ||
}; | ||
|
||
checkInputs = [ pytest pytestcov mock ]; | ||
checkPhase = "make test"; | ||
|
||
meta = with stdenv.lib; { | ||
description = "Library for working with Valve's VDF text format"; | ||
homepage = https://github.com/ValvePython/vdf; | ||
license = licenses.mit; | ||
maintainers = with maintainers; [ metadark ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 ]; | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters