openmpi: another nixfmt-rfc-style

This commit is contained in:
Doron Behar 2024-07-16 16:19:51 +03:00
parent 36494fe30f
commit 75897919c7

View File

@ -107,7 +107,8 @@ stdenv.mkDerivation (finalAttrs: {
enableParallelBuilding = true;
postInstall = let
postInstall =
let
# The file names we need to iterate are a combination of ${p}${s}, and there
# are 7x3 such options. We use lib.mapCartesianProduct to iterate them all.
fileNamesToIterate = {
@ -159,7 +160,8 @@ stdenv.mkDerivation (finalAttrs: {
];
part2 = builtins.attrNames wrapperDataSubstitutions;
};
in ''
in
''
find $out/lib/ -name "*.la" -exec rm -f \{} \;
# The main wrapper that all the rest of the commonly used binaries are
@ -205,8 +207,7 @@ stdenv.mkDerivation (finalAttrs: {
done
'';
postFixup =
''
postFixup = ''
remove-references-to -t "''${!outputDev}" $(readlink -f $out/lib/libopen-pal${stdenv.hostPlatform.extensions.sharedLibrary})
remove-references-to -t "''${!outputMan}" $(readlink -f $out/lib/libopen-pal${stdenv.hostPlatform.extensions.sharedLibrary})