opencl-info: fix build

This commit is contained in:
Demyan Rogozhin
2020-09-30 19:16:24 +02:00
committed by Daniël de Kok
parent 9232ca2ac1
commit 26d930cb76
2 changed files with 30 additions and 0 deletions
@@ -10,6 +10,14 @@ stdenv.mkDerivation {
sha256 = "114lxgnjg40ivjjszkv4n3f3yq2lbrvywryvbazf20kqmdz7315l";
};
patches = [
# The cl.hpp header was removed from opencl-clhpp. This patch
# updates opencl-info to use the new cp2.hpp header.
#
# Submitted upstream: https://github.com/marchv/opencl-info/pull/2
./opencl-info-clhpp2.diff
];
buildInputs = [ opencl-clhpp ocl-icd ];
NIX_LDFLAGS = "-lOpenCL";