diff options
| author | David Anderson <danderson@tailscale.com> | 2021-11-10 12:15:03 -0800 |
|---|---|---|
| committer | David Anderson <danderson@tailscale.com> | 2021-11-10 12:15:03 -0800 |
| commit | 41710e1b810aa25c14ceb657a40b9ba616615435 (patch) | |
| tree | 4953322c9930fde10dae9ff057de28827e87fb52 /ebpf/shell | |
| parent | 4a51050c498da33eaecb520b78aeb5f445a442f1 (diff) | |
| download | tailscale-danderson/ebpf.tar.xz tailscale-danderson/ebpf.zip | |
ebpf: experiments.danderson/ebpf
Diffstat (limited to 'ebpf/shell')
| -rwxr-xr-x | ebpf/shell | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/ebpf/shell b/ebpf/shell new file mode 100755 index 000000000..e67db800f --- /dev/null +++ b/ebpf/shell @@ -0,0 +1,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 |
