Skip to content

Commit

Permalink
bpftools_full: restore
Browse files Browse the repository at this point in the history
Can be removed too, if not needed
Currently not needed by scx
  • Loading branch information
JohnRTitor committed Nov 1, 2024
1 parent 31dbbc4 commit 5bd811e
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
2 changes: 1 addition & 1 deletion overlays/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ in

beautyline-icons = final.callPackage ../pkgs/beautyline-icons { };

bpftools_full = final.callPackage ../pkgs/scx/bpftools-full.nix { };
bpftools_full = final.callPackage ../pkgs/bpftools-full { };

busybox_appletless = multiOverride
prev.busybox
Expand Down
24 changes: 24 additions & 0 deletions pkgs/bpftools-full/default.nix
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
];
})

0 comments on commit 5bd811e

Please sign in to comment.