hdf4: move libhdf4.settings to dev output

This avoids a reference to gcc-wrapper in the lib closure, significantly
reducing closure size for downstream dependers.

As far as I can tell, this file is only used by `h4cc -showconfig`,
which was already not working as it has been checking the bin output.
It's possible to fix that, but I'd prefer to just focus on the closure
size reduction here since the h4cc path is a preexisting issue.

Closure size of hdf4.out goes from 374 MB -> 40 MB
This commit is contained in:
Ryan Burns
2026-05-06 19:42:04 -07:00
parent 1d3c313641
commit a0761bdacb
+1
View File
@@ -79,6 +79,7 @@ stdenv.mkDerivation (finalAttrs: {
];
postInstall = ''
moveToOutput lib/libhdf4.settings "$dev"
moveToOutput bin "$bin"
'';