Adding sysdig system call tracer for Linux

This commit is contained in:
Michael Raskin 2014-04-13 20:49:26 +04:00
parent e9a8c8417f
commit e86e76e560
3 changed files with 46 additions and 0 deletions

View file

@ -0,0 +1,41 @@
{stdenv, fetchurl, cmake, luajit, kernel}:
let
s = # Generated upstream information
rec {
baseName="sysdig";
version="0.1.79";
name="${baseName}-${version}";
hash="04ng4q859xxlpsnavx6rcgmq7frzgbzxm0p5zmdsmhz8m6hfvz7l";
url="https://github.com/draios/sysdig/archive/0.1.79.tar.gz";
sha256="04ng4q859xxlpsnavx6rcgmq7frzgbzxm0p5zmdsmhz8m6hfvz7l";
};
buildInputs = [
cmake luajit kernel
];
in
stdenv.mkDerivation {
inherit (s) name version;
inherit buildInputs;
src = fetchurl {
inherit (s) url sha256;
};
cmakeFlags = [
"-DUSE_BUNDLED_LUAJIT=OFF"
];
makeFlags = [
"KERNELDIR=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build"
];
postInstall = ''
mkdir -p $out/lib/modules/${kernel.modDirVersion}/misc/sysdig
cp driver/*.ko $out/lib/modules/${kernel.modDirVersion}/misc/sysdig
'';
meta = {
inherit (s) version;
description = ''A tracepoint-based system tracing tool for Linux'';
license = stdenv.lib.licenses.gpl2 ;
maintainers = [stdenv.lib.maintainers.raskin];
platforms = stdenv.lib.platforms.linux;
};
}

View file

@ -0,0 +1,3 @@
url https://github.com/draios/sysdig/releases
ensure_choice
version '.*/([0-9.]+)[.]tar[.].*' '\1'

View file

@ -7055,6 +7055,8 @@ let
spl = callPackage ../os-specific/linux/spl/default.nix { };
sysdig = callPackage ../os-specific/linux/sysdig {};
tp_smapi = callPackage ../os-specific/linux/tp_smapi { };
v86d = callPackage ../os-specific/linux/v86d { };