about summary refs log tree commit diff
path: root/pkgs/development/libraries/coprthr
diff options
context:
space:
mode:
authorAustin Seipp <aseipp@pobox.com>2014-05-07 15:34:14 -0500
committerAustin Seipp <aseipp@pobox.com>2014-05-07 15:34:21 -0500
commit3b873648b3aae5f2364bbd7f865ec4f8af40076c (patch)
tree1bcaf705515e8093ce0312f677cdc2eb5a37d074 /pkgs/development/libraries/coprthr
parentba085ee318482ecd2589a30b0b48dd645199121d (diff)
coprthr: ensure we use the right perl
Signed-off-by: Austin Seipp <aseipp@pobox.com>
Diffstat (limited to 'pkgs/development/libraries/coprthr')
-rw-r--r--pkgs/development/libraries/coprthr/default.nix6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkgs/development/libraries/coprthr/default.nix b/pkgs/development/libraries/coprthr/default.nix
index 42b626c992707..0e521aa19e8a4 100644
--- a/pkgs/development/libraries/coprthr/default.nix
+++ b/pkgs/development/libraries/coprthr/default.nix
@@ -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}"