From 9a4da9a6c940047e86735870c52f9c6b858831e1 Mon Sep 17 00:00:00 2001 From: Markus Kowalewski Date: Mon, 30 Mar 2026 15:37:31 +0200 Subject: [PATCH] openmpi: ensure that fortran .mod files are in dev output --- pkgs/by-name/op/openmpi/package.nix | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pkgs/by-name/op/openmpi/package.nix b/pkgs/by-name/op/openmpi/package.nix index 20fc9b74502f..67a0d62ef13b 100644 --- a/pkgs/by-name/op/openmpi/package.nix +++ b/pkgs/by-name/op/openmpi/package.nix @@ -199,6 +199,10 @@ stdenv.mkDerivation (finalAttrs: { '' find $out/lib/ -name "*.la" -exec rm -f \{} \; + # Fortran .mod files end up in bin output. + # Force all headers into the dev output . + moveToOutput "include/" "''${!outputDev}" + # The main wrapper that all the rest of the commonly used binaries are # symlinked to moveToOutput "bin/opal_wrapper" "''${!outputDev}"