Skip to content

Commit 9307254

Browse files
committed
proton-ge-bin: allow overriding display name in steam
1 parent 52aaef5 commit 9307254

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pkgs/by-name/pr/proton-ge-bin/package.nix

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@
33
stdenvNoCC,
44
fetchzip,
55
writeScript,
6+
# Can be overriden to alter the display name in steam
7+
# This could be useful if multiple versions should be installed together
8+
steamDisplayName ? "GE-Proton",
69
}:
710
stdenvNoCC.mkDerivation (finalAttrs: {
811
pname = "proton-ge-bin";
@@ -39,9 +42,9 @@ stdenvNoCC.mkDerivation (finalAttrs: {
3942

4043
preFixup = ''
4144
substituteInPlace "$steamcompattool/compatibilitytool.vdf" \
42-
--replace-fail "${finalAttrs.version}" "GE-Proton"
45+
--replace-fail "${finalAttrs.version}" "${steamDisplayName}"
4346
substituteInPlace "$steamcompattool/proton" \
44-
--replace-fail "${finalAttrs.version}" "GE-Proton"
47+
--replace-fail "${finalAttrs.version}" "${steamDisplayName}"
4548
'';
4649

4750
/*

0 commit comments

Comments
 (0)