2017-01-20 01:23:04 +01:00
|
|
|
{ stdenv, fetchFromGitHub, cmake, python, opencl-headers }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "opencl-clhpp";
|
2020-03-18 10:26:56 +01:00
|
|
|
version = "2.0.11";
|
2017-01-20 01:23:04 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "KhronosGroup";
|
|
|
|
repo = "OpenCL-CLHPP";
|
|
|
|
rev = "v${version}";
|
2020-03-18 10:26:56 +01:00
|
|
|
sha256 = "0a0n0f1lb86cwfm0ndzykcn965vz1v0n9n3rfmkiwrzkdhc9iy2y";
|
2017-01-20 01:23:04 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ cmake python ];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ opencl-headers ];
|
|
|
|
|
2020-04-10 20:11:46 +02:00
|
|
|
cmakeFlags = [
|
|
|
|
"-DBUILD_EXAMPLES=OFF"
|
|
|
|
"-DBUILD_TESTS=OFF"
|
|
|
|
];
|
2017-01-20 01:23:04 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "OpenCL Host API C++ bindings";
|
2020-03-18 10:26:56 +01:00
|
|
|
homepage = "http://github.khronos.org/OpenCL-CLHPP/";
|
2017-01-20 01:23:04 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|