From f6d7a099bea84f490ed38d9d682048221aef6b6a Mon Sep 17 00:00:00 2001 From: Stefan Frijters Date: Sat, 28 Feb 2026 12:09:18 +0100 Subject: [PATCH] opencv: move env variables into env for structuredAttrs --- pkgs/development/libraries/opencv/4.x.nix | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/opencv/4.x.nix b/pkgs/development/libraries/opencv/4.x.nix index b2381fee1d08..3e81c8a5b008 100644 --- a/pkgs/development/libraries/opencv/4.x.nix +++ b/pkgs/development/libraries/opencv/4.x.nix @@ -459,9 +459,11 @@ effectiveStdenv.mkDerivation { cudaPackages.cuda_nvcc ]; - # Configure can't find the library without this. - OpenBLAS_HOME = optionalString withOpenblas openblas_.dev; - OpenBLAS = optionalString withOpenblas openblas_; + env = { + # Configure can't find the library without this. + OpenBLAS_HOME = optionalString withOpenblas openblas_.dev; + OpenBLAS = optionalString withOpenblas openblas_; + }; cmakeFlags = [ (cmakeBool "BUILD_INFO_SKIP_SYSTEM_VERSION" true)