From 2bcb6e5d422c17d222495bf05f1f79d4e1911419 Mon Sep 17 00:00:00 2001 From: Mikael Voss Date: Wed, 23 Oct 2024 19:43:49 +0200 Subject: [PATCH] qtwebengine: Work around missing define --- overlay/modern-minimal.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/overlay/modern-minimal.nix b/overlay/modern-minimal.nix index 9faceb9..7ca8624 100644 --- a/overlay/modern-minimal.nix +++ b/overlay/modern-minimal.nix @@ -3,7 +3,7 @@ let inherit (final) system; inherit (nixpkgs.lib.attrsets) genAttrs mapAttrsToList; - inherit (nixpkgs.lib.lists) remove subtractLists; + inherit (nixpkgs.lib.lists) remove subtractLists toList; inherit (nixpkgs.lib.strings) mesonBool mesonEnable; inherit (self.lib) substituteFlags removePackages; @@ -330,6 +330,14 @@ in genAttrs [ postgresql = null; qttranslations = null; }; + + qtwebengine = prev.qtwebengine.overrideAttrs (prevAttrs: { + env = prevAttrs.env or { } // { + # hacky + NIX_CFLAGS_COMPILE = toList prevAttrs.env.NIX_CFLAGS_COMPILE or [ ] ++ + [ "-DGL_RGBA8_OES=0x8058" ] |> toString;; + }; + }); }); systemd = prev.systemd.override {