-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Can be removed too, if not needed Currently not needed by scx
- Loading branch information
1 parent
31dbbc4
commit 5bd811e
Showing
2 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
{ bpftools | ||
, makeLinuxHeaders | ||
, llvmPackages | ||
, libcap | ||
, linux_latest | ||
, kernel ? linux_latest | ||
}: | ||
|
||
(bpftools.override { | ||
linuxHeaders = | ||
# Bumps to newer bpftools | ||
makeLinuxHeaders { | ||
inherit (kernel) src version patches; | ||
}; | ||
# Enables "clang-bpf-co-re" feature | ||
inherit (llvmPackages) stdenv; | ||
}).overrideAttrs (prevAttrs: { | ||
buildInputs = prevAttrs.buildInputs ++ [ | ||
# Enables "llvm" feature | ||
llvmPackages.llvm | ||
# Enables "libcap" feature | ||
libcap | ||
]; | ||
}) |