Merge pull request #1824 from thoughtpolice/ktap

ktap: add v0.5-dev from git
This commit is contained in:
mornfall 2014-02-27 19:48:29 +01:00
commit 5fe6abc099
2 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,29 @@
{ stdenv, fetchgit, kernel }:
stdenv.mkDerivation rec {
name = "ktap-${version}";
version = "0.5-7ee59b19";
src = fetchgit {
url = "https://github.com/ktap/ktap.git";
rev = "7ee59b19d536fd3d3164ff0a0623faff827e5d97";
sha256 = "0a46836469d0afb088e72fd6310406a86c487d17bac40e390cec8bc869e7379c";
};
buildPhase = ''
make FFI=1 KERNEL_SRC=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build
'';
installPhase = ''
mkdir -p $out/sbin
cp ktap $out/sbin
make modules_install KERNEL_SRC=${kernel.dev}/lib/modules/${kernel.modDirVersion}/build INSTALL_MOD_PATH=$out
'';
meta = {
description = "A lightweight script-based dynamic tracing tool for Linux.";
homepage = "http://www.ktap.org";
platforms = stdenv.lib.platforms.linux;
license = stdenv.lib.licenses.gpl2;
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
};
}

View File

@ -6835,6 +6835,8 @@ let
frandom = callPackage ../os-specific/linux/frandom { };
ktap = callPackage ../os-specific/linux/ktap { };
lttngModules = callPackage ../os-specific/linux/lttng-modules { };
broadcom_sta = callPackage ../os-specific/linux/broadcom-sta/default.nix { };