2017-06-15 20:30:12 +01:00
|
|
|
{ stdenv, kernel, fetchFromGitHub, autoreconfHook, yacc, flex, bison }:
|
2017-06-14 23:25:46 +01:00
|
|
|
let
|
|
|
|
version = "1.0.beta1-9e810b1";
|
|
|
|
in stdenv.mkDerivation {
|
|
|
|
name = "ply-${version}";
|
2017-06-15 20:30:12 +01:00
|
|
|
nativeBuildInputs = [ autoreconfHook flex yacc ];
|
2017-06-14 23:25:46 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "iovisor";
|
|
|
|
repo = "ply";
|
|
|
|
rev = "9e810b157ba079c32c430a7d4c6034826982056e";
|
|
|
|
sha256 = "15cp6iczawaqlhsa0af6i37zn5iq53kh6ya8s2hzd018yd7mhg50";
|
|
|
|
};
|
|
|
|
|
2017-06-15 20:30:12 +01:00
|
|
|
preAutoreconf = ''
|
|
|
|
# ply wants to install header fails to its build directory
|
|
|
|
xz -d < ${kernel.src} | tar -xf -
|
|
|
|
configureFlagsArray+=(--with-kerneldir=$(echo $(pwd)/linux-*))
|
|
|
|
./autogen.sh --prefix=$out
|
|
|
|
'';
|
2017-06-14 23:25:46 +01:00
|
|
|
|
2017-06-15 20:30:12 +01:00
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "dynamic Tracing in Linux";
|
|
|
|
homepage = https://wkz.github.io/ply/;
|
|
|
|
license = [ licenses.gpl2 ];
|
|
|
|
maintainers = with maintainers; [ mic92 mbbx6spp ];
|
|
|
|
};
|
2017-06-14 23:25:46 +01:00
|
|
|
}
|