From 60728bc46c913c0c32163710ba4a482494666765 Mon Sep 17 00:00:00 2001 From: Austin Seipp Date: Wed, 19 Feb 2014 05:00:45 -0600 Subject: [PATCH] ktap: add v0.5-dev from git Signed-off-by: Austin Seipp --- pkgs/os-specific/linux/ktap/default.nix | 29 +++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 31 insertions(+) create mode 100644 pkgs/os-specific/linux/ktap/default.nix diff --git a/pkgs/os-specific/linux/ktap/default.nix b/pkgs/os-specific/linux/ktap/default.nix new file mode 100644 index 000000000000..21996e26131b --- /dev/null +++ b/pkgs/os-specific/linux/ktap/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 64f2bb688c4a..0d3eb10b9fac 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -6823,6 +6823,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 { };