git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #61108 from thoughtpolice/nixpkgs/bpftool-init

bpftool: init at 5.1.1

commit562a4752580d3639c09ef00f6fb9d5edeb11ebde authorAustin Seipp <aseipp@pobox.com> dateSun 12 May 2019, 22:13 (8 years ago) parenta45973446b7153
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
@@ -8821,6 +8821,8 @@ in
88218821 buildkite-agent2 = callPackage ../development/tools/continuous-integration/buildkite-agent/2.x.nix { };
88228822 buildkite-agent3 = callPackage ../development/tools/continuous-integration/buildkite-agent/3.x.nix { };
88238823
8824+ bpftool = callPackage ../os-specific/linux/bpftool { };
8825+
88248826 byacc = callPackage ../development/tools/parsing/byacc { };
88258827
88268828 cadre = callPackage ../development/tools/cadre { };