From 916e0bcc69e8ae2e71bb65b8658f8151bb96bd3d Mon Sep 17 00:00:00 2001 From: Stefan Frijters Date: Thu, 19 Feb 2026 17:30:27 +0100 Subject: [PATCH] libcamera: move env vars into env for structuredAttrs --- pkgs/by-name/li/libcamera/package.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/pkgs/by-name/li/libcamera/package.nix b/pkgs/by-name/li/libcamera/package.nix index 97d3893925eb..2b76cf35e5d6 100644 --- a/pkgs/by-name/li/libcamera/package.nix +++ b/pkgs/by-name/li/libcamera/package.nix @@ -123,11 +123,13 @@ stdenv.mkDerivation rec { "-Ddocumentation=disabled" ]; - # Fixes error on a deprecated declaration - env.NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations"; + env = { + # Fixes error on a deprecated declaration + NIX_CFLAGS_COMPILE = "-Wno-error=deprecated-declarations"; - # Silence fontconfig warnings about missing config - FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ ]; }; + # Silence fontconfig warnings about missing config + FONTCONFIG_FILE = makeFontsConf { fontDirectories = [ ]; }; + }; meta = { description = "Open source camera stack and framework for Linux, Android, and ChromeOS";