lol
at 16.09-beta 38 lines 1.3 kB view raw
1{ stdenv, fetchurl, libelf, libconfig, libevent, which, unzip, perl, python 2, bison, flex }: 3 4stdenv.mkDerivation rec { 5 name = "coprthr-${version}"; 6 version = "1.6"; 7 8 src = fetchurl { 9 url = "https://github.com/browndeer/coprthr/archive/stable-${version}.zip"; 10 sha256 = "0ilx4v1ydppjnq1i0z5j0x4lmi29z39sappar7c0wqady0b5dpz9"; 11 }; 12 13 buildInputs = 14 [ libelf libconfig libevent which unzip perl python bison flex ]; 15 16 patchPhase = '' 17 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 18 substituteInPlace $x --replace "/usr/bin/perl" ${perl}/bin/perl 19 done 20 ''; 21 22 configureFlags = 23 [ "--with-libelf=${libelf}" 24 "--with-libevent=${libevent.dev}" 25 "--with-libconfig=${libconfig}" 26 "--with-opencl-icd-path=$out/etc/OpenCL/vendors" 27 "--enable-user-install" 28 ]; 29 30 meta = { 31 description = "The CO-PRocessing THReads SDK for OpenCL/STDCL"; 32 homepage = "http://www.browndeertechnology.com/coprthr.htm"; 33 license = stdenv.lib.licenses.lgpl3; 34 platforms = stdenv.lib.platforms.linux; 35 maintainers = [ stdenv.lib.maintainers.thoughtpolice ]; 36 broken = true; 37 }; 38}