mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-14 16:40:09 +03:00
openmpi: fix postInstall hook on Darwin
This commit is contained in:
parent
af0df905e6
commit
8db6dc53b0
@ -212,7 +212,12 @@ stdenv.mkDerivation (finalAttrs: {
|
|||||||
${lib.pipe wrapperDataFileNames [
|
${lib.pipe wrapperDataFileNames [
|
||||||
(lib.mapCartesianProduct (
|
(lib.mapCartesianProduct (
|
||||||
{ part1, part2 }:
|
{ part1, part2 }:
|
||||||
''
|
# From some reason the Darwin build doesn't include some of these
|
||||||
|
# wrapperDataSubstitutions strings and even some of the files. Hence
|
||||||
|
# we currently don't perform these substitutions on other platforms,
|
||||||
|
# until a Darwin user will care enough about this cross platform
|
||||||
|
# related substitution.
|
||||||
|
lib.optionalString stdenv.isLinux ''
|
||||||
substituteInPlace "''${!outputDev}/share/openmpi/${part1}${part2}-wrapper-data.txt" \
|
substituteInPlace "''${!outputDev}/share/openmpi/${part1}${part2}-wrapper-data.txt" \
|
||||||
--replace-fail \
|
--replace-fail \
|
||||||
compiler=${lib.elemAt wrapperDataSubstitutions.${part2} 0} \
|
compiler=${lib.elemAt wrapperDataSubstitutions.${part2} 0} \
|
||||||
|
Loading…
Reference in New Issue
Block a user