git.iko.soy/typeable/nixpkgs
on master help sign in
bpftool: init at 5.1.1

Signed-off-by: Austin Seipp <aseipp@pobox.com>

commit46b7153d577d0ebb000f8b369260bd2c6e975c18 authorAustin Seipp <aseipp@pobox.com> dateMon 6 May 2019, 02:31 (8 years ago) parent8e4df48
2 files changed+28
pkgs/os-specific/linux/bpftool/default.nix+26 pkgs/top-level/all-packages.nix+2
pkgs/os-specific/linux/bpftool/default.nixnew file+26
@@ -0,0 +1,26 @@
1+{ stdenv, fetchurl
2+, libopcodes, libbfd, libelf
3+, linuxPackages_latest
4+}:
5+
6+stdenv.mkDerivation rec {
7+ pname = "bpftool";
8+ inherit (linuxPackages_latest.kernel) version src;
9+
10+ buildInputs = [ libopcodes libbfd libelf ];
11+
12+ preConfigure = ''
13+ cd tools/bpf/bpftool
14+ substituteInPlace ./Makefile \
15+ --replace '/usr/local' "$out" \
16+ --replace '/usr' "$out" \
17+ --replace '/sbin' '/bin'
18+ '';
19+
20+ meta = with stdenv.lib; {
21+ description = "Debugging/program analysis tool for the eBPF subsystem";
22+ license = [ licenses.gpl2 licenses.bsd2 ];
23+ platforms = platforms.linux;
24+ maintainers = with maintainers; [ thoughtpolice ];
25+ };
26+}
pkgs/top-level/all-packages.nix+2
@@ -8816,6 +8816,8 @@ in
88168816 buildkite-agent2 = callPackage ../development/tools/continuous-integration/buildkite-agent/2.x.nix { };
88178817 buildkite-agent3 = callPackage ../development/tools/continuous-integration/buildkite-agent/3.x.nix { };
88188818
8819+ bpftool = callPackage ../os-specific/linux/bpftool { };
8820+
88198821 byacc = callPackage ../development/tools/parsing/byacc { };
88208822
88218823 cadre = callPackage ../development/tools/cadre { };