sysdig: patch for linux >= 4.9.1
This commit is contained in:
parent
94ad99e759
commit
2ab883c9da
@ -1,4 +1,4 @@
|
|||||||
{stdenv, fetchurl, fetchFromGitHub, cmake, luajit, kernel, zlib, ncurses, perl, jsoncpp, libb64, openssl, curl, jq, gcc}:
|
{stdenv, fetchurl, fetchFromGitHub, cmake, luajit, kernel, zlib, ncurses, perl, jsoncpp, libb64, openssl, curl, jq, gcc, fetchpatch}:
|
||||||
let
|
let
|
||||||
inherit (stdenv.lib) optional optionalString;
|
inherit (stdenv.lib) optional optionalString;
|
||||||
baseName = "sysdig";
|
baseName = "sysdig";
|
||||||
@ -18,6 +18,15 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
hardeningDisable = [ "pic" ];
|
hardeningDisable = [ "pic" ];
|
||||||
|
|
||||||
|
patches = [
|
||||||
|
# patch for linux >= 4.9.1
|
||||||
|
# is included in the next release
|
||||||
|
(fetchpatch {
|
||||||
|
url = "https://github.com/draios/sysdig/commit/68823ffd3a76f88ad34c3d0d9f6fdf1ada0eae43.patch";
|
||||||
|
sha256 = "02vgyd70mwrk6mcdkacaahk49irm6vxzqb7dfickk6k32lh3m44k";
|
||||||
|
})
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
sed '1i#include <cmath>' -i userspace/libsinsp/{cursesspectro,filterchecks}.cpp
|
sed '1i#include <cmath>' -i userspace/libsinsp/{cursesspectro,filterchecks}.cpp
|
||||||
'';
|
'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user