From 4af074100f497298d819887b22a1b4efead158f3 Mon Sep 17 00:00:00 2001 From: Stefan Frijters Date: Fri, 3 Jul 2026 20:12:17 +0200 Subject: [PATCH] mdfried: move env variables into env for structuredAttrs New instances of environment variables outside of env should not be introduced. --- pkgs/by-name/md/mdfried/package.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pkgs/by-name/md/mdfried/package.nix b/pkgs/by-name/md/mdfried/package.nix index c6ff3e1ca665..52eac913a73a 100644 --- a/pkgs/by-name/md/mdfried/package.nix +++ b/pkgs/by-name/md/mdfried/package.nix @@ -59,8 +59,10 @@ rustPlatform.buildRustPackage (finalAttrs: { libiconv ]; - CFLAGS_aarch64_apple_darwin = lib.optionalString stdenv.hostPlatform.isDarwin "-UTARGET_OS_MAC"; - CXXFLAGS_aarch64_apple_darwin = lib.optionalString stdenv.hostPlatform.isDarwin "-UTARGET_OS_MAC"; + env = lib.optionalAttrs stdenv.hostPlatform.isDarwin { + CFLAGS_aarch64_apple_darwin = "-UTARGET_OS_MAC"; + CXXFLAGS_aarch64_apple_darwin = "-UTARGET_OS_MAC"; + }; doCheck = true;