Added proton GE as a steam compat tool

This commit is contained in:
Alejandro Angulo 2023-08-06 10:00:47 -07:00
parent be5daa4aa9
commit 4cf133db4d
Signed by: alejandro-angulo
GPG key ID: 75579581C74554B6
2 changed files with 28 additions and 0 deletions

View file

@ -24,5 +24,13 @@ in {
driSupport = true; driSupport = true;
driSupport32Bit = true; driSupport32Bit = true;
}; };
# TODO: This can be removed when/if PR 189398 is merged
# https://github.com/NixOS/nixpkgs/pull/189398
aa.home.extraOptions = {
home.sessionVariables = {
STEAM_EXTRA_COMPAT_TOOLS_PATHS = "${pkgs.aa.proton-ge-custom}";
};
};
}; };
} }

View file

@ -0,0 +1,20 @@
{
stdenv,
lib,
fetchurl,
...
}:
stdenv.mkDerivation rec {
pname = "proton-ge-custom";
version = "GE-Proton8-11";
src = fetchurl {
url = "https://github.com/GloriousEggroll/proton-ge-custom/releases/download/${version}/${version}.tar.gz";
sha256 = "sha256-ldJBwp/9Cjb5k9FBrc6iz4/rnMhU5Ayf35+kNTAvXCg=";
};
buildCommand = ''
mkdir -p $out
tar -C $out --strip=1 -x -f $src
'';
}