2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, ocl-icd, opencl-headers }:
|
2019-06-08 22:45:42 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "clinfo";
|
2021-02-23 16:35:16 +00:00
|
|
|
version = "3.0.21.02.21";
|
2019-06-08 22:45:42 +01:00
|
|
|
|
2021-01-06 03:02:40 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Oblomov";
|
|
|
|
repo = "clinfo";
|
|
|
|
rev = version;
|
2021-02-23 16:35:16 +00:00
|
|
|
sha256 = "sha256-0ijfbfv1F6mnt1uFH/A4yOADJoAFrPMa3yAOFJW53ek=";
|
2021-01-06 03:02:40 +00:00
|
|
|
};
|
2019-06-08 22:45:42 +01:00
|
|
|
|
|
|
|
buildInputs = [ ocl-icd opencl-headers ];
|
|
|
|
|
2021-01-06 03:02:40 +00:00
|
|
|
NIX_CFLAGS_COMPILE = [
|
|
|
|
"-Wno-error=stringop-overflow"
|
|
|
|
"-Wno-error=stringop-truncation"
|
|
|
|
];
|
2019-11-03 11:58:14 +00:00
|
|
|
|
2019-06-08 22:45:42 +01:00
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-06-08 22:45:42 +01:00
|
|
|
description = "Print all known information about all available OpenCL platforms and devices in the system";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/Oblomov/clinfo";
|
2019-06-08 22:45:42 +01:00
|
|
|
license = licenses.cc0;
|
|
|
|
maintainers = with maintainers; [ athas ];
|
2021-01-06 03:02:40 +00:00
|
|
|
platforms = platforms.linux;
|
2019-06-08 22:45:42 +01:00
|
|
|
};
|
|
|
|
}
|