unicorn: move NIX_LDFLAGS into env for structuredAttrs

This commit is contained in:
Stefan Frijters
2026-02-08 22:39:48 +01:00
parent 42e732bd17
commit 4060dceed6
+4 -2
View File
@@ -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