hide the runtime's GTK3 from nix2flatpak, so it bundles our patched one

This commit is contained in:
Henry Hiles 2026-12-01 12:19:29 -05:00
commit c9fdda41d1
Signed by: Henry-Hiles
SSH key fingerprint: SHA256:VKQUdS31Q90KvX7EkKMHMBpUspcmItAh86a+v7PGiIs

View file

@ -63,6 +63,13 @@
}) })
); );
runtime = "org.gnome.Platform/51"; runtime = "org.gnome.Platform/51";
# Hide the runtime's GTK3 from nix2flatpak, so it bundles our patched one
runtimeIndex =
pkgs.runCommand "runtime-index.json" { nativeBuildInputs = [ pkgs.jq ]; }
''
jq 'del(.sonames["libgtk-3.so.0", "libgdk-3.so.0", "libgailutil-3.so.0"])' \
${inputs.nix2flatpak}/runtimes/org.gnome.Platform/51/runtime-index.json > $out
'';
permissions = { permissions = {
share = [ "network" ]; share = [ "network" ];
sockets = [ sockets = [