ce641f4048
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
31 lines
703 B
Nix
31 lines
703 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, python3, opencl-headers }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "opencl-clhpp";
|
|
version = "2.0.15";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "KhronosGroup";
|
|
repo = "OpenCL-CLHPP";
|
|
rev = "v${version}";
|
|
sha256 = "sha256-A12GdevbMaO2QkGAk3VsXzwcDkF+6dEapse2xfdqzPM=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake python3 ];
|
|
|
|
propagatedBuildInputs = [ opencl-headers ];
|
|
|
|
strictDeps = true;
|
|
|
|
cmakeFlags = [
|
|
"-DBUILD_EXAMPLES=OFF"
|
|
"-DBUILD_TESTS=OFF"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "OpenCL Host API C++ bindings";
|
|
homepage = "http://github.khronos.org/OpenCL-CLHPP/";
|
|
license = licenses.mit;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|