From 0a3cdae3e5424139ec6e4ece2291e297881b8e79 Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Thu, 5 Sep 2024 22:11:31 +0200 Subject: [PATCH] kitty: Disable X support --- overlay/modern-minimal.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/overlay/modern-minimal.nix b/overlay/modern-minimal.nix index c2d44c0..511a587 100644 --- a/overlay/modern-minimal.nix +++ b/overlay/modern-minimal.nix @@ -171,6 +171,20 @@ in genAttrs [ withKeePassX11 = false; }; + kitty = prev.kitty.overrideAttrs (prevAttrs: { + buildInputs = prevAttrs.buildInputs or [ ] + |> removePackages [ "libX.*" ]; + + postPatch = prevAttrs.postPatch or "" + '' + substituteInPlace setup.py \ + --replace-fail "'x11 wayland'" "'wayland'" \ + --replace-fail "'gl'" "'opengl'" + + substituteInPlace kitty_tests/{check_build,glfw}.py \ + --replace-fail "'x11'" "'wayland'" + ''; + }); + libcanberra = prev.libcanberra.override { withAlsa = false; gtkSupport = null;