3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/libraries/opencl-clhpp/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
703 B
Nix
Raw Normal View History

2021-03-25 09:26:56 +00:00
{ lib, stdenv, fetchFromGitHub, cmake, python3, opencl-headers }:
2017-01-20 00:23:04 +00:00
stdenv.mkDerivation rec {
pname = "opencl-clhpp";
2021-08-15 16:05:59 +01:00
version = "2.0.15";
2017-01-20 00:23:04 +00:00
src = fetchFromGitHub {
owner = "KhronosGroup";
repo = "OpenCL-CLHPP";
rev = "v${version}";
2021-08-15 16:05:59 +01:00
sha256 = "sha256-A12GdevbMaO2QkGAk3VsXzwcDkF+6dEapse2xfdqzPM=";
2017-01-20 00:23:04 +00:00
};
2021-03-25 09:26:56 +00:00
nativeBuildInputs = [ cmake python3 ];
2017-01-20 00:23:04 +00:00
propagatedBuildInputs = [ opencl-headers ];
2021-03-25 09:26:56 +00:00
strictDeps = true;
cmakeFlags = [
"-DBUILD_EXAMPLES=OFF"
"-DBUILD_TESTS=OFF"
];
2017-01-20 00:23:04 +00:00
meta = with lib; {
2017-01-20 00:23:04 +00:00
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;
};
}