kitty: Disable X support

This commit is contained in:
Mikael 2024-09-05 22:11:31 +02:00
parent c00cab5fde
commit 0a3cdae3e5
Signed by: mikael
SSH key fingerprint: SHA256:21QyD2Meiot7jOUVitIR5YkGB/XuXdCvLW1hE6dsri0

View file

@ -171,6 +171,20 @@ in genAttrs [
withKeePassX11 = false; 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 { libcanberra = prev.libcanberra.override {
withAlsa = false; withAlsa = false;
gtkSupport = null; gtkSupport = null;