mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 05:25:38 +00:00
dd8d859829
Previously, it was installing to `$out/include/include`. Now it's correct: /nix/store/alw8idc8qhfhzw98banq2l5hmrdaglgm-opencl-clhpp-2.0.11 ├── include │ └── CL │ ├── cl2.hpp │ └── cl.hpp └── nix-support └── propagated-build-inputs 3 directories, 3 files
30 lines
682 B
Nix
30 lines
682 B
Nix
{ stdenv, fetchFromGitHub, cmake, python, opencl-headers }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "opencl-clhpp";
|
|
version = "2.0.11";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "KhronosGroup";
|
|
repo = "OpenCL-CLHPP";
|
|
rev = "v${version}";
|
|
sha256 = "0a0n0f1lb86cwfm0ndzykcn965vz1v0n9n3rfmkiwrzkdhc9iy2y";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake python ];
|
|
|
|
propagatedBuildInputs = [ opencl-headers ];
|
|
|
|
cmakeFlags = [
|
|
"-DBUILD_EXAMPLES=OFF"
|
|
"-DBUILD_TESTS=OFF"
|
|
];
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "OpenCL Host API C++ bindings";
|
|
homepage = "http://github.khronos.org/OpenCL-CLHPP/";
|
|
license = licenses.mit;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|