From e2b64c8a4e1791b7200f31f01f438ac703f6f941 Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Thu, 5 Sep 2024 21:06:32 +0200 Subject: [PATCH] libGL: Disable X support --- overlay/modern-minimal.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/overlay/modern-minimal.nix b/overlay/modern-minimal.nix index 7b9c7bc..72e8cab 100644 --- a/overlay/modern-minimal.nix +++ b/overlay/modern-minimal.nix @@ -185,6 +185,16 @@ in genAttrs [ x11Support = false; }; + libGL = prev.libGL.overrideAttrs (prevAttrs: { + buildInputs = prevAttrs.buildInputs or [ ] + |> removePackages [ "libX.*" "xorgproto" ]; + + configureFlags = prevAttrs.configureFlags or [ ] + ++ [ "--disable-x11" ]; + + postFixup = null; + }); + libgnomekbd = prev.libgnomekbd.overrideAttrs (prevAttrs: { mesonFlags = prevAttrs.mesonFlags or [ ] ++ [ (mesonBool "tests" false) ];