nixpkgs/pkgs/development/libraries/opencl-clhpp/default.nix

30 lines
682 B
Nix
Raw Normal View History

2017-01-20 00:23:04 +00:00
{ stdenv, fetchFromGitHub, cmake, python, opencl-headers }:
stdenv.mkDerivation rec {
pname = "opencl-clhpp";
2020-06-30 10:29:04 +01:00
version = "2.0.12";
2017-01-20 00:23:04 +00:00
src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "OpenCL-CLHPP";
rev = "v${version}";
2020-06-30 10:29:04 +01:00
sha256 = "04g3mg2cpbi048fxxkghra81bpxzqr4r3gspx5mvqipx1lzypsci";
2017-01-20 00:23:04 +00:00
};
nativeBuildInputs = [ cmake python ];
propagatedBuildInputs = [ opencl-headers ];
cmakeFlags = [
"-DBUILD_EXAMPLES=OFF"
"-DBUILD_TESTS=OFF"
];
2017-01-20 00:23:04 +00:00
meta = with stdenv.lib; {
description = "OpenCL Host API C++ bindings";
2020-03-18 09:26:56 +00:00
homepage = "http://github.khronos.org/OpenCL-CLHPP/";
2017-01-20 00:23:04 +00:00
license = licenses.mit;
platforms = platforms.unix;
};
}