diff options
Diffstat (limited to 'pkgs/development/rocm-modules/6/composable_kernel/unpack.nix')
-rw-r--r-- | pkgs/development/rocm-modules/6/composable_kernel/unpack.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/pkgs/development/rocm-modules/6/composable_kernel/unpack.nix b/pkgs/development/rocm-modules/6/composable_kernel/unpack.nix new file mode 100644 index 0000000000000..2572884388fa3 --- /dev/null +++ b/pkgs/development/rocm-modules/6/composable_kernel/unpack.nix @@ -0,0 +1,16 @@ +{ runCommandLocal, + composable_kernel_build, + zstd +}: +let + ck = composable_kernel_build; +in runCommandLocal "unpack-${ck.name}" { + nativeBuildInputs = [ zstd ]; + meta = ck.meta; + } '' + mkdir -p $out + cp -r --no-preserve=mode ${ck}/* $out + zstd -dv --rm $out/lib/libdevice_operations.a.zst -o $out/lib/libdevice_operations.a + substituteInPlace $out/lib/cmake/composable_kernel/*.cmake \ + --replace "${ck}" "$out" + '' |