mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-08 01:24:09 +01:00
rocmPackages.hipblaslt.src: compress yaml in postFetch to meet output limit (#497589)
This commit is contained in:
commit
75bf7d68da
1 changed files with 9 additions and 1 deletions
|
|
@ -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 \
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue