openmpi: fix pkgsStatic eval

The dependencies to `openmpi` don't build anyways, so it's fine if this
doesn't work as long as it evals without attribute missing errors.

`error: attribute 'sharedLibrary' missing`
This commit is contained in:
Artturin 2024-09-12 02:18:43 +03:00
parent 5543645978
commit 66538a85a0

View File

@ -240,11 +240,11 @@ stdenv.mkDerivation (finalAttrs: {
postFixup =
lib.optionalString (lib.elem "man" finalAttrs.outputs) ''
remove-references-to -t "''${!outputMan}" $(readlink -f $out/lib/libopen-pal${stdenv.hostPlatform.extensions.sharedLibrary})
remove-references-to -t "''${!outputMan}" $(readlink -f $out/lib/libopen-pal${stdenv.hostPlatform.extensions.library})
''
+ lib.optionalString (lib.elem "dev" finalAttrs.outputs) ''
remove-references-to -t "''${!outputDev}" $out/bin/mpirun
remove-references-to -t "''${!outputDev}" $(readlink -f $out/lib/libopen-pal${stdenv.hostPlatform.extensions.sharedLibrary})
remove-references-to -t "''${!outputDev}" $(readlink -f $out/lib/libopen-pal${stdenv.hostPlatform.extensions.library})
# The path to the wrapper is hard coded in libopen-pal.so, which we just cleared.
wrapProgram "''${!outputDev}/bin/opal_wrapper" \