From 25f408e860e4daafcc2982353b900ea7b577ce89 Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Tue, 14 Apr 2026 17:13:26 +0300 Subject: [PATCH] hdf5: small formatting adjustment to postInstall --- pkgs/tools/misc/hdf5/default.nix | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/pkgs/tools/misc/hdf5/default.nix b/pkgs/tools/misc/hdf5/default.nix index 6d3a02d616e3..7c31123922f1 100644 --- a/pkgs/tools/misc/hdf5/default.nix +++ b/pkgs/tools/misc/hdf5/default.nix @@ -116,17 +116,15 @@ stdenv.mkDerivation rec { moveToOutput 'bin/h5hlcc' "''${!outputDev}" moveToOutput 'bin/h5hlc++' "''${!outputDev}" '' - + - lib.optionalString enableShared - # The shared build creates binaries with -shared suffixes, - # so we remove these suffixes. - '' - pushd ''${!outputBin}/bin - for file in *-shared; do - mv "$file" "''${file%%-shared}" - done - popd - '' + # The shared build creates binaries with -shared suffixes, + # so we remove these suffixes. + + lib.optionalString enableShared '' + pushd ''${!outputBin}/bin + for file in *-shared; do + mv "$file" "''${file%%-shared}" + done + popd + '' + lib.optionalString fortranSupport '' mv $out/mod/shared $dev/include rm -r $out/mod