taisei: fix gamemode support

This commit is contained in:
Gliczy
2025-08-26 17:02:05 +02:00
parent aadacfb3dd
commit c07dda5631
+7
View File
@@ -12,6 +12,7 @@
openssl,
gamemode,
shaderc,
makeWrapper,
# Runtime depends
glfw,
sdl3,
@@ -47,6 +48,7 @@ stdenv.mkDerivation (finalAttrs: {
python3Packages.python
python3Packages.zstandard
shaderc
makeWrapper
];
buildInputs = [
@@ -81,6 +83,11 @@ stdenv.mkDerivation (finalAttrs: {
patchShebangs .
'';
postInstall = lib.optionalString gamemodeSupport ''
wrapProgram $out/bin/taisei \
--set LD_LIBRARY_PATH ${lib.makeLibraryPath [ gamemode ]}
'';
strictDeps = true;
meta = {