Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
16 lines
444 B
Nix
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"
|
|
''
|