Nix: fix nvidia patch for dual gpu system

* this fix it most important for laptops with dgpu
 * remove post patch line wlroots.nix

Signed-off-by: Gonçalo Duarte <gonegrier.duarte@gmail.com>
This commit is contained in:
Gonçalo Duarte 2023-08-02 14:47:19 +01:00 committed by Mihai Fufezan
parent 8e04a80e60
commit 12cb109137
2 changed files with 13 additions and 9 deletions

View file

@ -46,15 +46,6 @@ assert (lib.assertMsg (hidpiXWayland -> enableXWayland) ''
++ (lib.optionals nvidiaPatches [
./patches/wlroots-nvidia.patch
]);
postPatch =
(old.postPatch or "")
+ (
if nvidiaPatches
then ''
substituteInPlace render/gles2/renderer.c --replace "glFlush();" "glFinish();"
''
else ""
);
buildInputs = old.buildInputs ++ [hwdata libliftoff libdisplay-info];
NIX_CFLAGS_COMPILE = toString [