diff --git a/linux/nix/default.nix b/linux/nix/default.nix index 5611f52..87b2f2d 100644 --- a/linux/nix/default.nix +++ b/linux/nix/default.nix @@ -63,6 +63,13 @@ }) ); 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 = { share = [ "network" ]; sockets = [