hdf5: small formatting adjustment to postInstall

This commit is contained in:
Doron Behar
2026-04-16 00:32:55 +03:00
parent 61ab2478c3
commit 25f408e860
+9 -11
View File
@@ -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