nss: fix non-cross builds (#394090)

This commit is contained in:
Audrey Dutcher
2025-03-29 23:05:25 -07:00
committed by GitHub
+3 -1
View File
@@ -121,8 +121,10 @@ stdenv.mkDerivation rec {
]
++ lib.optional enableFIPS "--enable-fips"
++ lib.optional stdenv.hostPlatform.isDarwin "--clang"
++ lib.optionals (stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
++ lib.optionals (target_system != stdenv.buildPlatform.uname.system) [
"-DOS=${target_system}"
]
++ lib.optionals (!stdenv.buildPlatform.canExecute stdenv.hostPlatform) [
"--disable-tests"
];
in