diff options
author | Austin Seipp <aseipp@pobox.com> | 2019-05-12 22:13:35 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-05-12 22:13:35 -0500 |
commit | 562a4752580d3639c09ef00f6fb9d5edeb11ebde (patch) | |
tree | 8972559ea79b43d8be7166205a18025d704bb636 | |
parent | a459734c253681eb3145d800514cf6a4efc88edb (diff) | |
parent | 46b7153d577d0ebb000f8b369260bd2c6e975c18 (diff) |
Merge pull request #61108 from thoughtpolice/nixpkgs/bpftool-init
bpftool: init at 5.1.1
-rw-r--r-- | pkgs/os-specific/linux/bpftool/default.nix | 26 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 28 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/bpftool/default.nix b/pkgs/os-specific/linux/bpftool/default.nix new file mode 100644 index 000000000000..cc4786ab3848 --- /dev/null +++ b/pkgs/os-specific/linux/bpftool/default.nix @@ -0,0 +1,26 @@ +{ stdenv, fetchurl +, libopcodes, libbfd, libelf +, linuxPackages_latest +}: + +stdenv.mkDerivation rec { + pname = "bpftool"; + inherit (linuxPackages_latest.kernel) version src; + + buildInputs = [ libopcodes libbfd libelf ]; + + preConfigure = '' + cd tools/bpf/bpftool + substituteInPlace ./Makefile \ + --replace '/usr/local' "$out" \ + --replace '/usr' "$out" \ + --replace '/sbin' '/bin' + ''; + + meta = with stdenv.lib; { + description = "Debugging/program analysis tool for the eBPF subsystem"; + license = [ licenses.gpl2 licenses.bsd2 ]; + platforms = platforms.linux; + maintainers = with maintainers; [ thoughtpolice ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8ebd9874c93c..0ac118e77552 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -8821,6 +8821,8 @@ in buildkite-agent2 = callPackage ../development/tools/continuous-integration/buildkite-agent/2.x.nix { }; buildkite-agent3 = callPackage ../development/tools/continuous-integration/buildkite-agent/3.x.nix { }; + bpftool = callPackage ../os-specific/linux/bpftool { }; + byacc = callPackage ../development/tools/parsing/byacc { }; cadre = callPackage ../development/tools/cadre { }; |