2019-06-08 22:45:42 +01:00
|
|
|
{ stdenv, fetchFromGitHub, ocl-icd, opencl-headers }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "clinfo";
|
2020-11-22 22:43:37 +00:00
|
|
|
version = "3.0.20.11.20";
|
2019-06-08 22:45:42 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Oblomov";
|
|
|
|
repo = "clinfo";
|
2019-09-09 00:38:31 +01:00
|
|
|
rev = version;
|
2020-11-22 22:43:37 +00:00
|
|
|
sha256 = "052xfkbmgfpalmhfwn0dj5114x2mzwz29y37qqhhsdpaxsz0y422";
|
2019-06-08 22:45:42 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ocl-icd opencl-headers ];
|
|
|
|
|
2019-11-03 11:58:14 +00:00
|
|
|
NIX_CFLAGS_COMPILE = [ "-Wno-error=stringop-truncation" ];
|
|
|
|
|
2019-06-08 22:45:42 +01:00
|
|
|
makeFlags = [ "PREFIX=${placeholder "out"}" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
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;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ athas ];
|
|
|
|
};
|
|
|
|
}
|