scx.cscheds: fix build
by doing this in postFixup, we hopefully don't create a cycle here obviously this is a dirty fix, but better solutions can be thought later Closes https://github.com/NixOS/nixpkgs/issues/425498 Signed-off-by: John Titor <50095635+JohnRTitor@users.noreply.github.com>
This commit is contained in:
parent
ff86cbb5c2
commit
a15f79a5d2
@ -118,10 +118,9 @@ llvmPackages.stdenv.mkDerivation (finalAttrs: {
|
||||
|
||||
# We copy the compiled header files to the dev output
|
||||
# These are needed for the rust schedulers
|
||||
preInstall = ''
|
||||
mkdir -p ${placeholder "dev"}/libbpf ${placeholder "dev"}/bpftool
|
||||
cp -r libbpf/* ${placeholder "dev"}/libbpf/
|
||||
cp -r bpftool/* ${placeholder "dev"}/bpftool/
|
||||
postFixup = ''
|
||||
mkdir -p ${placeholder "dev"}
|
||||
cp -r libbpf ${placeholder "dev"}
|
||||
'';
|
||||
|
||||
outputs = [
|
||||
|
@ -20,8 +20,7 @@ rustPlatform.buildRustPackage {
|
||||
|
||||
# Copy compiled headers and libs from scx.cscheds
|
||||
postPatch = ''
|
||||
mkdir bpftool libbpf
|
||||
cp -r ${scx.cscheds.dev}/bpftool/* bpftool/
|
||||
mkdir libbpf
|
||||
cp -r ${scx.cscheds.dev}/libbpf/* libbpf/
|
||||
'';
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user