feat(steam): add proton pkg that doesn't change name in steam
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-08-01 00:41:47 -04:00
parent f0b721c12d
commit a79cb29aaf
5 changed files with 34 additions and 3 deletions

View file

@ -16,7 +16,7 @@ in {
remotePlay.openFirewall = true;
extraCompatPackages = [
pkgs.proton-ge-bin
self.packages.${pkgs.system}.proton-ge-latest
];
};

View file

@ -1,6 +1,7 @@
{
nix-gaming,
pkgs,
self,
...
}: {
imports = [
@ -12,8 +13,8 @@
enable = true;
remotePlay.openFirewall = true;
extraCompatPackages = with pkgs; [
proton-ge-bin
extraCompatPackages = [
self.packages.${pkgs.system}.proton-ge-latest
];
platformOptimizations.enable = true;

View file

@ -10,5 +10,8 @@ This directory encompasses every derivations for packages exposed by my flake.
| `gpu-screen-recorder` | [Git](https://git.dec05eba.com/gpu-screen-recorder/about) |
| `pam-fprint-grosshack` | [GitLab](https://gitlab.com/mishakmak/pam-fprint-grosshack) |
| `pokemon-colorscripts` | [GitLab](https://gitlab.com/phoneybadger/pokemon-colorscripts) |
| `proton-ge-latest` | [Github](https://github.com/GloriousEggroll/proton-ge-custom) patched with persistent name in Steam |
| `protonhax` | [Github](https://github.com/jcnils/protonhax) |
| `repl` | nix repl forked from [here](https://github.com/fufexan/dotfiles/blob/main/pkgs/repl/default.nix) |
| `trash-d` | [Github](https://github.com/rushsteve1/trash-d) |
| `yuzu` | Last working version of yuzu in nixpkgs |

View file

@ -19,6 +19,8 @@
inherit mkVersion;
};
proton-ge-latest = pkgs.callPackage ./proton-ge-latest {};
protonhax = pkgs.callPackage ./protonhax {
inherit (inputs) protonhax-src;
inherit mkVersion;

View file

@ -0,0 +1,25 @@
{
proton-ge-bin,
rsync,
...
}:
proton-ge-bin.overrideAttrs {
buildInputs = [rsync];
buildCommand =
# bash
''
runHook preBuild
echo "Proton should not be installed into environments. Please use programs.steam.extraCompatPackages instead." > $out
cat $src/compatibilitytool.vdf > ./compatibilitytool.vdf
sed -i 's/"GE-Proton[^"]*"/"GE-Proton-Latest"/g' ./compatibilitytool.vdf
mkdir $steamcompattool
cp -a ./compatibilitytool.vdf $steamcompattool/
rsync -ar --exclude='compatibilitytool.vdf' $src/* $steamcompattool/
runHook postBuild
'';
}