mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Adding sysdig system call tracer for Linux
This commit is contained in:
parent
e9a8c8417f
commit
e86e76e560
3 changed files with 46 additions and 0 deletions
41
pkgs/os-specific/linux/sysdig/default.nix
Normal file
41
pkgs/os-specific/linux/sysdig/default.nix
Normal 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;
|
||||
};
|
||||
}
|
3
pkgs/os-specific/linux/sysdig/default.upstream
Normal file
3
pkgs/os-specific/linux/sysdig/default.upstream
Normal file
|
@ -0,0 +1,3 @@
|
|||
url https://github.com/draios/sysdig/releases
|
||||
ensure_choice
|
||||
version '.*/([0-9.]+)[.]tar[.].*' '\1'
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue