llvm_13: fix cross-compilation

apply the same fix as used in 517d2b963f35abbca8ccc364141bc5f2b4e92974

authored by Rick van Schijndel and committed by sterni e31f3929 badb5a1a

+2 -1
+2 -1
pkgs/development/compilers/llvm/13/llvm/default.nix
··· 46 buildInputs = [ libxml2 libffi ] 47 ++ optional enablePFM libpfm; # exegesis 48 49 - propagatedBuildInputs = [ ncurses zlib ]; 50 51 checkInputs = [ which ]; 52
··· 46 buildInputs = [ libxml2 libffi ] 47 ++ optional enablePFM libpfm; # exegesis 48 49 + propagatedBuildInputs = optionals (stdenv.hostPlatform == stdenv.buildPlatform) [ ncurses ] 50 + ++ [ zlib ]; 51 52 checkInputs = [ which ]; 53