2021-12-06 16:07:01 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, ocl-icd, opencl-headers, OpenCL }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "clinfo";
|
2021-02-24 18:30:23 +00:00
|
|
|
version = "3.0.21.02.21";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-01-09 10:05:03 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Oblomov";
|
|
|
|
repo = "clinfo";
|
|
|
|
rev = version;
|
2021-02-24 18:30:23 +00:00
|
|
|
sha256 = "sha256-0ijfbfv1F6mnt1uFH/A4yOADJoAFrPMa3yAOFJW53ek=";
|
2021-01-09 10:05:03 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
buildInputs = lib.optionals (!stdenv.isDarwin) [
|
|
|
|
ocl-icd
|
|
|
|
opencl-headers
|
|
|
|
] ++ lib.optionals stdenv.isDarwin [
|
|
|
|
OpenCL
|
2021-01-09 10:05:03 +00:00
|
|
|
];
|
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;
|
2021-12-06 16:07:01 +00:00
|
|
|
maintainers = with maintainers; [ athas r-burns ];
|
|
|
|
platforms = platforms.unix;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|