summary refs log tree commit diff
path: root/pkgs/os-specific/linux/sysdig
diff options
context:
space:
mode:
authorJörg Thalheim <joerg@higgsboson.tk>2017-01-10 11:56:33 +0100
committerJörg Thalheim <joerg@higgsboson.tk>2017-01-15 00:08:12 +0100
commit2ab883c9da231619f33da82f909576ae049a8223 (patch)
tree68c9fb0408a7ee5ed974cf91251c8a8af03c77c9 /pkgs/os-specific/linux/sysdig
parent94ad99e759712d3d41d074dbb8edbbb91e284142 (diff)
downloadnixpkgs-2ab883c9da231619f33da82f909576ae049a8223.tar
nixpkgs-2ab883c9da231619f33da82f909576ae049a8223.tar.gz
nixpkgs-2ab883c9da231619f33da82f909576ae049a8223.tar.bz2
nixpkgs-2ab883c9da231619f33da82f909576ae049a8223.tar.lz
nixpkgs-2ab883c9da231619f33da82f909576ae049a8223.tar.xz
nixpkgs-2ab883c9da231619f33da82f909576ae049a8223.tar.zst
nixpkgs-2ab883c9da231619f33da82f909576ae049a8223.zip
sysdig: patch for linux >= 4.9.1
Diffstat (limited to 'pkgs/os-specific/linux/sysdig')
-rw-r--r--pkgs/os-specific/linux/sysdig/default.nix11
1 files changed, 10 insertions, 1 deletions
diff --git a/pkgs/os-specific/linux/sysdig/default.nix b/pkgs/os-specific/linux/sysdig/default.nix
index 281ee101eac..abe1388e9a5 100644
--- a/pkgs/os-specific/linux/sysdig/default.nix
+++ b/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";
@@ -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
   '';