@@ -1,4 +1,5 @@
1−{ stdenv, fetchurl, makeWrapper, cmake, llvmPackages, kernel
1+{ stdenv, fetchurl, fetchpatch
2+, makeWrapper, cmake, llvmPackages, kernel
23, flex, bison, elfutils, python, luajit, netperf, iperf, libelf
34, systemtap, bash
45}:
@@ -23,6 +24,12 @@ python.pkgs.buildPythonApplication rec {
2324 # This is needed until we fix
2425 # https://github.com/NixOS/nixpkgs/issues/40427
2526 ./fix-deadlock-detector-import.patch
27+
28+ # This is already upstream; remove it on the next release
29+ (fetchpatch {
30+ url = "https://github.com/iovisor/bcc/commit/60de17161fe7f44b534a8da343edbad2427220e3.patch";
31+ sha256 = "0pd5b4vgpdxbsrjwrw2kmn4l9hpj0rwdm3hvwvk7dsr3raz7w4b3";
32+ })
2633 ];
2734
2835 propagatedBuildInputs = [ python.pkgs.netaddr ];