mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-06-05 21:03:40 +00:00
hal-hardware-analyzer: move NIX_CFLAGS_COMPILE into env for structuredAttrs
This commit is contained in:
@@ -87,7 +87,9 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
cmakeBuildType = "MinSizeRel";
|
||||
|
||||
# https://github.com/emsec/hal/issues/598
|
||||
NIX_CFLAGS_COMPILE = lib.optional stdenv.hostPlatform.isAarch64 "-flax-vector-conversions";
|
||||
env = lib.optionalAttrs stdenv.hostPlatform.isAarch64 {
|
||||
NIX_CFLAGS_COMPILE = "-flax-vector-conversions";
|
||||
};
|
||||
|
||||
# some plugins depend on other plugins and need to be able to load them
|
||||
postFixup = lib.optionalString stdenv.hostPlatform.isLinux ''
|
||||
|
||||
Reference in New Issue
Block a user