2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, ocl-icd, opencl-headers }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "clinfo";
|
2020-11-24 20:58:05 +00:00
|
|
|
version = "3.0.20.11.20";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Oblomov";
|
|
|
|
repo = "clinfo";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "052xfkbmgfpalmhfwn0dj5114x2mzwz29y37qqhhsdpaxsz0y422";
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ ocl-icd opencl-headers ];
|
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
NIX_CFLAGS_COMPILE = [
|
|
|
|
"-Wno-error=stringop-overflow"
|
|
|
|
"-Wno-error=stringop-truncation"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "Print all known information about all available OpenCL platforms and devices in the system";
|
|
|
|
homepage = "https://github.com/Oblomov/clinfo";
|
|
|
|
license = licenses.cc0;
|
|
|
|
maintainers = with maintainers; [ athas ];
|
2021-01-09 10:05:03 +00:00
|
|
|
platforms = platforms.linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|