ply: fix build
This commit is contained in:
parent
fdef885d97
commit
f5d98e8e18
@ -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 ];
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user