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:12:17 +02:00
commit 4af074100f
No known key found for this signature in database
GPG key ID: 7619A6BC6E7DFA6F

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;