coprthr: ensure we use the right perl

Signed-off-by: Austin Seipp <aseipp@pobox.com>
This commit is contained in:
Austin Seipp 2014-05-07 15:34:14 -05:00
parent ba085ee318
commit 3b873648b3

View File

@ -13,6 +13,12 @@ stdenv.mkDerivation rec {
buildInputs =
[ libelf libconfig libevent which unzip perl python bison flex ];
patchPhase = ''
for x in src/libocl/gen_oclcall_hook.pl tools/cltrace/gen_interceptor.pl src/libocl/gen_oclcall.pl src/scripts/gen_ocl_call_vector.pl src/libstdcl/gen_clarg_setn.pl; do
substituteInPlace $x --replace "/usr/bin/perl" ${perl}/bin/perl
done
'';
configureFlags =
[ "--with-libelf=${libelf}"
"--with-libevent=${libevent}"