ply: fix build

This commit is contained in:
Jörg Thalheim 2017-06-15 20:30:12 +01:00
parent fdef885d97
commit f5d98e8e18
No known key found for this signature in database
GPG Key ID: CA4106B8D7CC79FA

View File

@ -1,19 +1,9 @@
{ autoconf, automake, flex, yacc, stdenv, kernel, fetchFromGitHub }: { stdenv, kernel, fetchFromGitHub, autoreconfHook, yacc, flex, bison }:
let let
version = "1.0.beta1-9e810b1"; version = "1.0.beta1-9e810b1";
in stdenv.mkDerivation { in stdenv.mkDerivation {
name = "ply-${version}"; name = "ply-${version}";
nativeBuildInputs = [ nativeBuildInputs = [ autoreconfHook flex yacc ];
autoconf
automake
];
buildInputs = [
flex
yacc
kernel
stdenv.cc
];
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "iovisor"; owner = "iovisor";
@ -22,9 +12,17 @@ in stdenv.mkDerivation {
sha256 = "15cp6iczawaqlhsa0af6i37zn5iq53kh6ya8s2hzd018yd7mhg50"; sha256 = "15cp6iczawaqlhsa0af6i37zn5iq53kh6ya8s2hzd018yd7mhg50";
}; };
preConfigure = "sh autogen.sh --prefix=$out"; 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
'';
configureFlags = [ meta = with stdenv.lib; {
"--with-kerneldir=${kernel.dev}" description = "dynamic Tracing in Linux";
]; homepage = https://wkz.github.io/ply/;
license = [ licenses.gpl2 ];
maintainers = with maintainers; [ mic92 mbbx6spp ];
};
} }