override RUNPATH to put patched gtk3 first

This commit is contained in:
Henry Hiles 2026-12-01 12:55:50 -05:00
commit 5d15236903
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -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";