From c9fdda41d17633efa1f6499afbadc48fa366e5d7 Mon Sep 17 00:00:00 2001 From: Henry-Hiles Date: Tue, 1 Dec 2026 12:19:29 -0500 Subject: [PATCH] hide the runtime's GTK3 from nix2flatpak, so it bundles our patched one --- linux/nix/default.nix | 7 +++++++ 1 file changed, 7 insertions(+) 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 = [