summaryrefslogtreecommitdiffhomepage
path: root/ebpf/shell
blob: e67db800f83a56cabf48f66b17fc311709f9ff14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/env sh

shell() {
	nix shell nixos-unstable#llvmPackages_13.{llvm,lld,clang-unwrapped,llvm-manpages,clang-manpages,bintools} nixos-unstable#{binutils,linuxHeaders,bpftool,libbpf} "$@"
}

rm -rf include
mkdir -p include
shell -c rsync -r $(nix path-info nixos-unstable#linuxHeaders)/include/ include/
shell -c rsync -r $(nix path-info nixos-unstable#libbpf)/include/ include/
chmod -R u+rwX include
shell