unicorn: move NIX_LDFLAGS into env for structuredAttrs
This commit is contained in:
@@ -26,8 +26,10 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
cctools
|
||||
];
|
||||
|
||||
# Ensure the linker is using atomic when compiling for RISC-V, otherwise fails
|
||||
NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isRiscV "-latomic";
|
||||
env = lib.optionalAttrs stdenv.hostPlatform.isRiscV {
|
||||
# Ensure the linker is using atomic when compiling for RISC-V, otherwise fails
|
||||
NIX_LDFLAGS = "-latomic";
|
||||
};
|
||||
|
||||
cmakeFlags = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [
|
||||
# Some x86 tests are interrupted by signal 10
|
||||
|
||||
Reference in New Issue
Block a user