From b304e9190932fbf1c7d6a7b8921140e72d0afc99 Mon Sep 17 00:00:00 2001 From: Mitchell Skaggs Date: Fri, 20 Feb 2026 18:01:10 -0600 Subject: [PATCH] waylandpp: don't wrap `env.FONTCONFIG_FILE` string in list fixes `error: The `env` attribute set can only contain derivation, string, boolean or integer attributes. The `FONTCONFIG_FILE` attribute is of type list.` Co-authored-by: jopejoe1 --- pkgs/development/libraries/waylandpp/default.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/waylandpp/default.nix b/pkgs/development/libraries/waylandpp/default.nix index 61ac0a51cfdc..d1ddfa6cbc07 100644 --- a/pkgs/development/libraries/waylandpp/default.nix +++ b/pkgs/development/libraries/waylandpp/default.nix @@ -34,9 +34,11 @@ stdenv.mkDerivation (finalAttrs: { ]; # Complains about not being able to find the fontconfig config file otherwise - env.FONTCONFIG_FILE = lib.optional docSupport (makeFontsConf { - fontDirectories = [ ]; - }); + env = lib.optionalAttrs docSupport { + FONTCONFIG_FILE = makeFontsConf { + fontDirectories = [ ]; + }; + }; nativeBuildInputs = [ cmake