pmix: fix cross build (#371804)

This commit is contained in:
misuzu
2025-01-13 20:11:14 +02:00
committed by GitHub
+1 -1
View File
@@ -86,7 +86,7 @@ stdenv.mkDerivation (finalAttrs: {
# Pin the compiler to the current version in a cross compiler friendly way.
# Same pattern as for openmpi (see https://github.com/NixOS/nixpkgs/pull/58964#discussion_r275059427).
substituteInPlace "''${!outputDev}"/share/pmix/pmixcc-wrapper-data.txt \
--replace-fail compiler=gcc \
--replace-fail compiler=${stdenv.cc.targetPrefix}gcc \
compiler=${targetPackages.stdenv.cc}/bin/${targetPackages.stdenv.cc.targetPrefix}cc
'';