nixpkgs/pkgs/development/libraries/coprthr/default.nix
Austin Seipp 3b873648b3 coprthr: ensure we use the right perl
Signed-off-by: Austin Seipp <aseipp@pobox.com>
2014-05-07 15:34:21 -05:00

38 lines
1.2 KiB
Nix

{ stdenv, fetchurl, libelf, libconfig, libevent, which, unzip, perl, python
, bison, flex }:
stdenv.mkDerivation rec {
name = "coprthr-${version}";
version = "1.6";
src = fetchurl {
url = "https://github.com/browndeer/coprthr/archive/stable-${version}.zip";
sha256 = "042aykmcxhdpck0j6k5rcp6a0b5i377fv2nz96v1bpfhzxd1mjwg";
};
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}"
"--with-libconfig=${libconfig}"
"--with-opencl-icd-path=$out/etc/OpenCL/vendors"
"--enable-user-install"
];
meta = {
description = "The CO-PRocessing THReads SDK for OpenCL/STDCL";
homepage = "http://www.browndeertechnology.com/coprthr.htm";
license = stdenv.lib.licenses.lgpl3;
platforms = stdenv.lib.platforms.linux;
maintainers = [ stdenv.lib.maintainers.thoughtpolice ];
};
}