diff --git a/linux/nix/default.nix b/linux/nix/default.nix index 87b2f2d..79aab66 100644 --- a/linux/nix/default.nix +++ b/linux/nix/default.nix @@ -60,6 +60,13 @@ unset GST_PLUGIN_SYSTEM_PATH_1_0 '' + old.postInstall; + # nix2flatpak swaps dropped RUNPATH entries for the runtime's libdir in place, + # which would put it ahead of our patched GTK, so move GTK to the front + postFixup = old.postFixup or "" + '' + bin=$out/app/nexus/nexus + ${lib.getExe pkgs.patchelf} --set-rpath \ + "${lib.getLib pkgs.gtk3}/lib:$(${lib.getExe pkgs.patchelf} --print-rpath $bin)" $bin + ''; }) ); runtime = "org.gnome.Platform/51";