feat(steam): add proton pkg that doesn't change name in steam
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
f0b721c12d
commit
a79cb29aaf
5 changed files with 34 additions and 3 deletions
|
@ -16,7 +16,7 @@ in {
|
||||||
|
|
||||||
remotePlay.openFirewall = true;
|
remotePlay.openFirewall = true;
|
||||||
extraCompatPackages = [
|
extraCompatPackages = [
|
||||||
pkgs.proton-ge-bin
|
self.packages.${pkgs.system}.proton-ge-latest
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
nix-gaming,
|
nix-gaming,
|
||||||
pkgs,
|
pkgs,
|
||||||
|
self,
|
||||||
...
|
...
|
||||||
}: {
|
}: {
|
||||||
imports = [
|
imports = [
|
||||||
|
@ -12,8 +13,8 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
remotePlay.openFirewall = true;
|
remotePlay.openFirewall = true;
|
||||||
|
|
||||||
extraCompatPackages = with pkgs; [
|
extraCompatPackages = [
|
||||||
proton-ge-bin
|
self.packages.${pkgs.system}.proton-ge-latest
|
||||||
];
|
];
|
||||||
|
|
||||||
platformOptimizations.enable = true;
|
platformOptimizations.enable = true;
|
||||||
|
|
|
@ -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) |
|
| `gpu-screen-recorder` | [Git](https://git.dec05eba.com/gpu-screen-recorder/about) |
|
||||||
| `pam-fprint-grosshack` | [GitLab](https://gitlab.com/mishakmak/pam-fprint-grosshack) |
|
| `pam-fprint-grosshack` | [GitLab](https://gitlab.com/mishakmak/pam-fprint-grosshack) |
|
||||||
| `pokemon-colorscripts` | [GitLab](https://gitlab.com/phoneybadger/pokemon-colorscripts) |
|
| `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) |
|
| `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) |
|
| `trash-d` | [Github](https://github.com/rushsteve1/trash-d) |
|
||||||
|
| `yuzu` | Last working version of yuzu in nixpkgs |
|
||||||
|
|
|
@ -19,6 +19,8 @@
|
||||||
inherit mkVersion;
|
inherit mkVersion;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
proton-ge-latest = pkgs.callPackage ./proton-ge-latest {};
|
||||||
|
|
||||||
protonhax = pkgs.callPackage ./protonhax {
|
protonhax = pkgs.callPackage ./protonhax {
|
||||||
inherit (inputs) protonhax-src;
|
inherit (inputs) protonhax-src;
|
||||||
inherit mkVersion;
|
inherit mkVersion;
|
||||||
|
|
25
packages/proton-ge-latest/default.nix
Normal file
25
packages/proton-ge-latest/default.nix
Normal 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
|
||||||
|
'';
|
||||||
|
}
|
Loading…
Reference in a new issue