mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-17 22:28:55 +00:00
mdfried: move env variables into env for structuredAttrs (#538186)
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user