mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-06 17:13:24 -05:00
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:
parent
a98e9a7c39
commit
4af074100f
1 changed files with 4 additions and 2 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue