depot/pkgs/development/rocm-modules/6/composable_kernel/unpack.nix
Luke Granger-Brown 57725ef3ec Squashed 'third_party/nixpkgs/' content from commit 76612b17c0ce
git-subtree-dir: third_party/nixpkgs
git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
2024-11-10 23:59:47 +00:00

16 lines
444 B
Nix

{ 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"
''