mdfried: move env variables into env for structuredAttrs

New instances of environment variables outside of env should not be introduced.
This commit is contained in:
Stefan Frijters
2026-07-03 20:13:01 +02:00
parent a98e9a7c39
commit 4af074100f
+4 -2
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;