Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / libraries / opencl-clhpp / default.nix
blob8410aa4aa0638499e5430f70d86174bcc2cd1c05
1 { lib, stdenv, fetchFromGitHub, cmake, python3, opencl-headers }:
3 stdenv.mkDerivation rec {
4   pname = "opencl-clhpp";
5   version = "2.0.15";
7   src = fetchFromGitHub {
8     owner = "KhronosGroup";
9     repo = "OpenCL-CLHPP";
10     rev = "v${version}";
11     sha256 = "sha256-A12GdevbMaO2QkGAk3VsXzwcDkF+6dEapse2xfdqzPM=";
12   };
14   nativeBuildInputs = [ cmake python3 ];
16   propagatedBuildInputs = [ opencl-headers ];
18   strictDeps = true;
20   cmakeFlags = [
21     "-DBUILD_EXAMPLES=OFF"
22     "-DBUILD_TESTS=OFF"
23   ];
25   meta = with lib; {
26     description = "OpenCL Host API C++ bindings";
27     homepage = "http://github.khronos.org/OpenCL-CLHPP/";
28     license = licenses.mit;
29     platforms = platforms.unix;
30   };