mdfried: move env variables into env for structuredAttrs (#538186)

This commit is contained in:
Stefan Frijters
2026-07-03 20:11:28 +00:00
committed by GitHub

View File

@@ -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;