From 2aa14c076a23252b8d7ef66bc755d08740786106 Mon Sep 17 00:00:00 2001 From: Luna Nova Date: Sat, 7 Mar 2026 06:50:53 -0800 Subject: [PATCH] rocmPackages.hipblaslt.src: compress yaml in postFetch to meet output limit Before: /nix/store/b1gvdqxccy2i377fg0cr83jkir2b8ngf-source 5.0 GiB After: /nix/store/fnh40id9mxm58x2wkf81mr594cv5rzms-source 657.9 MiB --- pkgs/development/rocm-modules/hipblaslt/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/pkgs/development/rocm-modules/hipblaslt/default.nix b/pkgs/development/rocm-modules/hipblaslt/default.nix index 5fb88a4c78cc..f1511cc81264 100644 --- a/pkgs/development/rocm-modules/hipblaslt/default.nix +++ b/pkgs/development/rocm-modules/hipblaslt/default.nix @@ -76,11 +76,15 @@ stdenv.mkDerivation (finalAttrs: { owner = "ROCm"; repo = "rocm-libraries"; rev = "rocm-${finalAttrs.version}"; - hash = "sha256-I2dGn4Ld5lZeML8GePcLPssplBZ+4weNR6uBEqFdZVg="; + hash = "sha256-+yaOUA8hzRPnz14Cmp2BbfIS5811PgMcHQLY2+FatMU="; sparseCheckout = [ "projects/hipblaslt" "shared" ]; + # Compress the 5ish GiB of yaml files so this .src is under output size limit + postFetch = '' + find $out -name '*.yaml' -path '*/Tensile/Logic/*' -exec ${lib.getExe zstd} --rm {} \; + ''; }; sourceRoot = "${finalAttrs.src.name}/projects/hipblaslt"; env.CXX = compiler; @@ -122,6 +126,10 @@ stdenv.mkDerivation (finalAttrs: { ./Tensile-interning.patch ]; + preConfigure = '' + find . -name '*.yaml.zst' -path '*/Tensile/Logic/*' -exec zstd -d --rm {} \; + ''; + postPatch = '' # git isn't needed and we have no .git substituteInPlace cmake/dependencies.cmake \