Skip to content

Commit

Permalink
sysdig: patch for linux >= 4.9.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Jan 14, 2017
1 parent 94ad99e commit 2ab883c
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion pkgs/os-specific/linux/sysdig/default.nix
@@ -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
inherit (stdenv.lib) optional optionalString;
baseName = "sysdig";
Expand All @@ -18,6 +18,15 @@ stdenv.mkDerivation {

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 = ''
sed '1i#include <cmath>' -i userspace/libsinsp/{cursesspectro,filterchecks}.cpp
'';
Expand Down

0 comments on commit 2ab883c

Please sign in to comment.