From a0761bdacbee52b5935e7d075635ebd7e1e38815 Mon Sep 17 00:00:00 2001 From: Ryan Burns Date: Wed, 6 May 2026 15:37:38 -0700 Subject: [PATCH] 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 --- pkgs/by-name/hd/hdf4/package.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/by-name/hd/hdf4/package.nix b/pkgs/by-name/hd/hdf4/package.nix index 603bd5dd7122..045a5b5092db 100644 --- a/pkgs/by-name/hd/hdf4/package.nix +++ b/pkgs/by-name/hd/hdf4/package.nix @@ -79,6 +79,7 @@ stdenv.mkDerivation (finalAttrs: { ]; postInstall = '' + moveToOutput lib/libhdf4.settings "$dev" moveToOutput bin "$bin" '';