2017-01-20 00:23:04 +00:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, python, opencl-headers }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "opencl-clhpp";
|
2017-01-20 00:23:04 +00:00
|
|
|
version = "2.0.10";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KhronosGroup";
|
|
|
|
repo = "OpenCL-CLHPP";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0h5kpg5cl8wzfnqmv6i26aig2apv06ffm9p3rh35938n9r8rladm";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake python ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ opencl-headers ];
|
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
cmakeFlags="-DCMAKE_INSTALL_PREFIX=$out/include -DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "OpenCL Host API C++ bindings";
|
2017-08-01 21:03:30 +01:00
|
|
|
homepage = http://github.khronos.org/OpenCL-CLHPP/;
|
2017-01-20 00:23:04 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|