openmpi: fix cross eval

`error: attribute 'gfortran' missing` because `__raw` `targetPackages`
only contains `stdenv`
This commit is contained in:
Artturin
2024-09-12 02:23:48 +03:00
parent cbf48cea2d
commit 5543645978
@@ -175,7 +175,9 @@ stdenv.mkDerivation (finalAttrs: {
// lib.optionalAttrs fortranSupport {
"fort" = [
"gfortran"
"${targetPackages.gfortran}/bin/${targetPackages.gfortran.targetPrefix}gfortran"
"${targetPackages.gfortran or gfortran}/bin/${
targetPackages.gfortran.targetPrefix or gfortran.targetPrefix
}gfortran"
];
};
# The -wrapper-data.txt files that are not symlinks, need to be iterated as